On Friday 18 November 2005 12:52 pm, Michael Campbell wrote: > Is there a generic templating engine for ruby, a la Freemarker for > Java? What I'm looking for is something that can take a ruby "model" > (object graph, hashes, lists, etc.), a template, merge the 2 and spit > out the result. > > I'd like this *NOT* specifically for Web usage; that is, it doesn't > take .rhtml, or any html necessarily, doesn't need to be run as part > of mod_ruby inside apache, etc., and ideally would be pure ruby. > > I like the erb syntax, and would love to have the full power of ruby > inside the template, if possible. Something like OGNL is for java... You can just use erb. It doesn't have to be used for web things, if you like the syntax. There are a bunch of other plain old templating packages out there. Given what you describe, maybe xtemplate or amrita2 might interest you? Kwartz is interesting. I also use IOWA for generic content generation. On demand reports, CSV files for import into Excel, and customized email generation, primarily, but that's probably not what you want. Kirk Haines