9elements/haml-coffee — pull request #9 by netzpirat (2011-11-22 08:59:07+00:00)
Title: Better Ruby Haml compatibility for attributes.

Currently the attribute generation doesn't allow empty attributes
and removes them, but there might be legitim cases for using empty
attributes.

%input{ name: '' }

was previously rendered to

but from now this will produce

Also the boolean attribute logic was too much decoupled from the tag
generation, so there was no distinction between regular attributes
and boolean attributes at tag generation time.

%input{ name: 'name' }

was rendered to

but since it's not a boolean attribute, it must be rendered to