On Thu, May 13, 2010 at 07:28, Nathan Weizenbaum <[email protected]> wrote:

> Form helpers are a completely separate thing from Haml tags. They're
> provided by Rails and don't make any use of the Haml tag-rendering
> infrastructure. So it's not that surprising that they don't support boolean
> attributes.


Also, it's worth noting that Rails 2.3 tag helpers always generate XHTML. I
monkeypatched this in my Standardista plugin:
http://github.com/mislav/standardista/blob/master/lib/standardista/rails_override.rb

<http://github.com/mislav/standardista/blob/master/lib/standardista/rails_override.rb>I
believe they handle some boolean tags like "checked" or "disabled", but it's
a small whitelist and definitely doesn't support HTML5.

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