After using HAML for a while I cannot go back to the bloated XML-like
syntax anymore, so I'd like to use HAML syntax to produce DRYML
templates.

The first idea is writing a little RAILS plugin which would use HAML
to generate DRYML in a very similar way SASS generates CSS.

In theory it doesn't look so complicate, but the first problem I see
is that the HAML engine should not execute the ruby code, which should
be rendered as a verbatim sting.

For example:

  %a{:href=>"#{object_url this}"} anything

should generate:

  <a href="#{object_url this}">anything</a>

Is there any option to do that or any method to override somewhere, in
order to switch off the ruby code execution?


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