I love HAML. But yesterday I had one of "those" moments where, after
an ugly amount of succeed "!" do / = "#{whatever}!" / == #{whataver}!
hackery, I was a bit too close to reverting to ERB. Luckily, Nathan
spotted my whining on Twitter and quickly helped restore my
faith. ;-)  Being able to use #{} style variable substitution
within :markdown etc. helpers really helps a lot.

During that little episode I also had an idea for a new HAML syntax
that might help improve the situation even more. Check it out:

http://pastie.caboo.se/183851

Basically, the idea is to introduce parentheses (or some other kind of
delimiter) to wrap the expression that's intended to be contained in
the parent tag, with everything following the parentheses being
outside the tag. I haven't had a look at how HAML works yet, but I
imagine it might not be too hard to implement -- might give it a try
at some point (unless one of you is faster).

I believe it should work fine with all existing denominators,
including ==, without breaking backwards compatibility.

Your thoughts?

- Hendrik

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