Yes. See http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml/Engine.html.
Note that Haml 1.8, which will be released very soon (in a matter of hours), will offer several interfaces for caching compiled templates that can give significant speed increases. See http://nex-3.com/posts/58-caching-with-haml for details. Also, if these templates are coming from an untrusted source, be sure to use the :suppress_eval option to disallow people from running Ruby code within the templates. - Nathan matt mitchell wrote: > Hi, > > I'm storing a few templates in a database and would like to use haml > to render them instead of the the default rails renderer. Is this > possible to do? > > Thanks, > Matt > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
