Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nex3
· 15y ago · 0 comments
Haml keys can be plain strings.
#main_page{"data-role" => 'page'}
`data-` attributes are also special-cased:
#main_page{data: {role: 'page'}}
Comments
[–]
aaronbrethorst
15y ago
I did not know that. Thanks for the heads up, and thanks for Haml and Sass!