On 10/3/07, Patrick Aljord <[EMAIL PROTECTED]> wrote:
>
>
> is it possible to store some haml code in the database and then
> display it in a view?
For sure. You have to render the code manually, though:
engine = Haml::Engine.new("%p Haml code!")
engine.render
#=> "<p>Haml code!</p>\n"
(copy/paste from http://haml.hamptoncatlin.com/docs/haml)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---