haml/haml — pull request #592 by ElvinEfendi (2012-09-10 18:14:41+00:00)
Title: Arbitrary hash valued attribute in HTML tags

In the current version of Haml we can use only 'data' attribute with hash value. But with HTML5 we can use put arbitrary attribute to HTML tags. Haml supports to add arbitrary attributes; However it does not support to add arbitrary hash value attribute different than 'data'. With the change I made now user can add for example aria: {foo: 'bar'} and this will be compiled to aria-foo = "bar"