flyx / emerald

HTML5 templating engine for Nimrod
Do What The F*ck You Want To Public License
95 stars 9 forks source link

Support data attributes on HTML tags #3

Closed flyx closed 9 years ago

flyx commented 9 years ago

HTML allows the usage of arbitrary data-* attributes on any tag. emerald should support that. Possible implementation:

emerald:

p(data={str="foo", num=5}): "content"

output:

<p data-str="foo" data-num="5">content</p>

Open questions: