Object attribute support
abdolian opened this issue · 1 comments
abdolian commented
I need something like .dataset=${object}
without data-
prefix.
Input
<div .attr="${{foo: 1, 'foo-bar': 2}}"></div>
Output
<div foo="1" foo-bar="2"></div>
WebReflection commented
easy with custom elements ... you define a getter, and set an attribute per each object key/value pair ... otherwise, check uhtml-intents