One of these days when I get my task list down I want to implement a
way to sandbox the HAML rendering so you could allow users to
write/store/render HAML views without risk to the underlying data &
system.

- Jeff

On 10/3/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to