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 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.
https://github.com/WICG/webcomponents/issues/1009
I talked a little bit about this in a talk last year: https://www.zachleat.com/web/good-bad-web-components/#server-side-rendering