Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle "custom data attributes" #14

Open
afeld opened this issue Nov 21, 2012 · 2 comments
Open

handle "custom data attributes" #14

afeld opened this issue Nov 21, 2012 · 2 comments

Comments

@afeld
Copy link

afeld commented Nov 21, 2012

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

iRonin commented Jan 24, 2013

+1

@minad
Copy link
Member

minad commented Jan 24, 2013

this will work in Slim 2.0 directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants