is there a template engine similar to Template Toolkit 2 (in Perl)
available for Ruby? It should be feature-rich, stand-alone, not
restricted to only generate HTML output.
I know there are solutions around (everybody writes his own, I suppose),
but it is difficult to get an overview on what is available.
On 2/13/07, Ralf Robert HÃ¶ppel [email protected] wrote:
There is a nice assortment of template engines in Ruby. A good overview
the more common ones is on this wiki page. Many of these can be used for
both html and non-html output and they mention that in their features.
however the wiki appears to be not responding right now so google cache
a recent copy here (or search google for ruby html templates and
This site lists a quick snippet of their syntax and the major features
with links to the sites.
On Feb 13, 9:03 am, Ralf Robert Höppel [email protected] wrote:
is there a template engine similar to Template Toolkit 2 (in Perl) available for Ruby? It should be feature-rich, stand-alone, not restricted to only generate HTML output.
I’m not familiar with Perl or TT2. However, I will say that ERB (that
comes with Ruby) sounds like a good match. I use it at work for both
HTML and C++ code generation.
Because it was so common for me to want to use an XML file to drive an
ERB template, I wrote a little script that loads a specified XML file
into REXML, and makes that available to an ERB template.
It’s simple, but it’s Ruby…how much more simplicity and power do you
I’ve uploaded documentation and code for it at