Hi!

I've looked through the docs, but I can't seem to find an answer
there. What I'm trying to find out is if it is possible to render a
HAML string coming from ruby using the *current* instance of a
HAML::Engine.

What I want to render:
<p>One</p>
<p>Two</p>
<p>Three</p>

When some of my values are coming from ruby that data won't get
'parsed'
%p One
- two = '%p Two'
= two
%p Three

renders:
<p>One</p>
%p Two
<p>Three</p>

It works if I create a *new* Engine
%p One
- two = '%p Two'
= Haml::Engine.new(two).render
%p Three

renders:
<p>One</p>
<p>Two</p>
<p>Three</p

...but is it possible to do this *without* creating a new Engine?

/lasso

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to