Post

Both are ESM native, "no build" and "copy-paste into my project" friendly Examples with actual web components coming at some point. Note: I haven't tackled interactive forms, they don't have reactivity, they don't deal with event handlers

0 reposts0 likes

Small feedback: As a user of HTML, I want to write attributes as attributes, instead of putting them all inside a data-s-attr attribute in a new syntax.

For example instead of <img data-s-attr="src=url,alt=greeting" /> I'd want to write something like <img src=$url alt=$greeting /> or something.

Yeah so I didn't want to borrow the v-bind/x-bind shorthand because I explicitly am not doing a reactive binding Re why it's `data-s-attr="attrName=contextValue"` 1. The querySelectorAll is simpler (select for data-s-attr), I'm not even sure how I would use querySelect for "attrs starting with :"