Most used Haml features

59 views
Skip to first unread message

Russell Allen

unread,
Feb 21, 2012, 4:55:18 PM2/21/12
to ha...@googlegroups.com
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:
  1. C# code control with - token
  2. Line escaping with \ token
  3. Internal filters
  4. Ruby style attributes
  5. Doctype tags with !!! token
  6. Multiline strings with | token
  7. HTML Escaping with &=, =, !=
  8. 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

Hampton Catlin

unread,
Feb 21, 2012, 5:21:40 PM2/21/12
to ha...@googlegroups.com
My gut-feeling feedback mostly follows our implementation order.

1, 5, 2, 3, 8, 4, 7, 6.

6 is discouraged anyway.

--
You received this message because you are subscribed to the Google Groups "Haml" group.
To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/PI1g2icj2Z8J.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply all
Reply to author
Forward
0 new messages