From: James Edward Gray II Date: 2005-11-19T04:58:30+09:00 Subject: Re: generic, non web based templating engine? On Nov 18, 2005, at 1: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. ERb is a standard Ruby library and can be used for anything (not just HTML), so if that's what you want, you can have it. :) James Edward Gray II