Re: [WICG/webcomponents] DOM parts use outside of <template> seems unlikely (Issue #1035)

Not a dumb question at all, @otabek-git.  I think it fair to say people are trying to look at ssr carefully as it relates to templating, I'm not sure if we have considered all possible solutions, so any ideas are encouraged.  Here's what we have so far:

1.  This is the approach [that has the most](https://eisenbergeffect.medium.com/the-future-of-native-html-templating-and-data-binding-5f3e52fda259) "hands on deck" as far as accommodating ssr, and which looks quite promising to me.
2.   I've [proposed](https://github.com/WICG/webcomponents/issues/1013) adding first-class support for micro-data, which I believe could help with hydrating as the HTML streams in, and could also be used to infer the template from server-generated content (though the one with all hands on deck above might be more effective at that, not sure).
3. Providing first-class support for [progressive enhancement](https://github.com/WICG/webcomponents/issues/1000), and at the same time use the same developer code that could integrate with template instantiation would, I think, work well with ssr.  That proposal also begins to quietly make the case for a "template instantiation manifest", where some bindings could be moved outside the template, and applied to server rendered content via css, similar to corset and trans-render libraries.  I think there's a stronger case for that, that ties in with the proposal below:
4. [This proposal](https://github.com/whatwg/dom/issues/1222), as I see it, is the first step towards supporting "parts" in service workers as well as in remote JS-based services built with bun or deno or cloudflare workers.
5. I'm sure there are others (these are all skewed towards things I'm following closely, as I proposed many of them).



-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1035#issuecomment-1803626678
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1035/1803626678@github.com>

Received on Thursday, 9 November 2023 11:09:11 UTC