K
Kyle Heon
------=_NextPart_000_004E_01C57CEC.D7D34340
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I hope this doesn't sound like an odd question but as I'm learning Ruby I'm
trying to apply it to "real-world" applications that have some value at
work.
One of the projects that I've started working on is building a set of
code-generation templates (kind of like what CodeSmith
http://www.codesmithtools.com/) does in the .NET world.
Essentially what I want to be able to do is create a series of "templates"
that contain mostly static output that includes tags which are processed by
Ruby when read in much like the way Erb works inside an rhtml page.
So, my question is basically this: Can I embed Erb tags in a txt file (for
instance) and get them to process? All I've been able to find so far shows
how to use Erb in an rhtml page running on Apache. That isn't the
environment I want to work in.
Any pointers people can offer up is very much appreciated. If I am going
about this in a completely backwards (or reinvent the wheel) way and know of
a different approach I'm all ears -- as I said, I'm beginning to learn Ruby.
Thanks!
Kyle Heon
(e-mail address removed)
------=_NextPart_000_004E_01C57CEC.D7D34340--
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I hope this doesn't sound like an odd question but as I'm learning Ruby I'm
trying to apply it to "real-world" applications that have some value at
work.
One of the projects that I've started working on is building a set of
code-generation templates (kind of like what CodeSmith
http://www.codesmithtools.com/) does in the .NET world.
Essentially what I want to be able to do is create a series of "templates"
that contain mostly static output that includes tags which are processed by
Ruby when read in much like the way Erb works inside an rhtml page.
So, my question is basically this: Can I embed Erb tags in a txt file (for
instance) and get them to process? All I've been able to find so far shows
how to use Erb in an rhtml page running on Apache. That isn't the
environment I want to work in.
Any pointers people can offer up is very much appreciated. If I am going
about this in a completely backwards (or reinvent the wheel) way and know of
a different approach I'm all ears -- as I said, I'm beginning to learn Ruby.
Thanks!
Kyle Heon
(e-mail address removed)
------=_NextPart_000_004E_01C57CEC.D7D34340--