Hi all,
As some of you may know, I'm working on a .Net port of Haml (predictably enough, nHaml). I've got an engine now that handles what I think is the bare minimum Haml stuff, namely:
- Tags - Normal, implicit div and self-closing tags (HTML4, XHTML4, HTML5)
- Nested tags
- Attributes - Normal, html-style and boolean attributes (HTML4, XHTML4, HTML5)
- Comments- Silent and markup
- Whitespace munching
- Variable interpolation
- C# code evaluation with = token
So I now have an engine I can just about use in production. But what Haml features should I be looking at next? At the moment, I can see I'm missing support for:
- C# code control with - token
- Line escaping with \ token
- Internal filters
- Ruby style attributes
- Doctype tags with !!! token
- Multiline strings with | token
- HTML Escaping with &=, =, !=
- Whitespace preservation
I've put the above list in order of what I think is most important, what do you all think? Am I missing some killer Haml feature that you live and die by? Does HTML escaping save you masses of time day in day out?
Any feedback much appreciated, thanks,
Russ