From: Michael Campbell Date: 2005-11-19T04:52:20+09:00 Subject: generic, non web based templating engine? 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... A quick glance at rubyforge and RAA didn't yield much, but I'm probably missing something. Or, failing that, a reason I'm obviously overlooking as to why something like this isn't necessary and what to do instead. Thanks -- I tend to view "truly flexible" by another term: "Make everything equally hard". -- DHH