[web-devel] proposal for hamlet-like syntax that is more compatible

Greg Weber greg at gregweber.info
Mon Dec 13 16:25:08 CET 2010


Are those in favor of HAML compatibility or not in favor of html brackets
all in favor of HAML attribute syntax?

instead of:

  %foo!bar=baz!class=more

this:

  %foo(bar=baz class=more)

I didn't like it because it is one extra character, but it is more readable
and HAML compatible. We could also allow not having a closing parens (when
there is no inner text). I am now beginning to appreciate why Michael chose
the '!', but if we support 2 syntaxes going forward it would be nice if one
as HAML compatible as possible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20101213/6ffd108e/attachment.htm>


More information about the web-devel mailing list