slim-template / haml2slim

Haml to Slim converter.
http://slim-lang.com/
119 stars 20 forks source link

handle "custom data attributes" #14

Open afeld opened 11 years ago

afeld commented 11 years ago

http://haml.info/docs/yardoc/file.REFERENCE.html#html5_custom_data_attributes

.text{ :data => { :elem => "text" } }

should be converted to

.text data-elem="text"

Currently those attributes are copied over with the hash directly, which breaks the template. Thanks!

iRonin commented 11 years ago

+1

minad commented 11 years ago

this will work in Slim 2.0 directly