You can turn off ruby eval with the ":suppress_eval => true" option.

However, this won't get you far as a replacement for Liquid, since you can't
configure certain objects/methods to be accessible. I'm not aware if anyone
implemented Liquid in Haml (it should be possible!).


On Wed, Jun 23, 2010 at 18:32, Dane Harrigan <[email protected]>wrote:

> Hey guys, I come from the Liquid Markup world and I'm interested in
> Haml. Like the subject says I'm wondering if Haml can be configured to
> not evaluate Ruby code. That it evaluates Ruby code out of the box, it
> looks like a direct replacement to ERB, but can that be turned off?
>
> With Liquid I can setup my filters and my drops that my templates can
> use. The templates can't reference anything else in the system other
> than what I've given them access to.
>
> Can Haml do this?
>
> Thanks in advance guys!
>
>
>
> -Dane
>
> --
> 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] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
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