Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Support data attributes on HTML tags #3

Closed
flyx opened this issue Aug 17, 2015 · 0 comments
Closed

Support data attributes on HTML tags #3

flyx opened this issue Aug 17, 2015 · 0 comments

Comments

@flyx
Copy link
Owner

flyx commented Aug 17, 2015

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:

  • Is the value required to be a table constructor literal?
  • If not, can it take a Table, a seq, something else as value?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant