zachleat.com is one of the many independent Mastodon servers you can use to participate in the fediverse.

Server stats:

1
active users

i created a tiny (~10LOC) custom element to demonstrate how easy it can be to avoid repetition of shadow dom templates.

why can't we have something like this built into #HTML? seems fairly safe and uncontroversial

mayank.co/notes/use-html

www.mayank.coThe use-html custom element
Zach Leatherman :11ty:

@mayank yes please. Lots of overlap with declarative custom elements too maybe but this is lower level and has a better onramp/extensibility to more complicated JS later.

github.com/WICG/webcomponents/

I talked a little bit about this in a talk last year: zachleat.com/web/good-bad-web-

GitHub[declarative-custom-elements] Capabilities needed and open questions · Issue #1009 · WICG/webcomponentsBy justinfagnani