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

@matthewp 

>I would suggest adding "will non-JS frameworks adopt this?" as a question to answer. Key word being will they, not can they. You can talk yourself into something being possible more easily than you can explain why they will want to do it; will requires putting yourself in their shoes and thinking about their priorities.

I think I hear what you are saying to some degree, based on personal experience.  However, I see rays of light that integrating non-JS server -side technologies with JS client side inline binding templates  would benefit from the template binding and/or parts.  For example, [wordpress](https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/) seems to be adopting "islands of interactivity" (using preact I think) while still utilizing PHP, in a "non-compromising way" for lack of a better term.  

>Note that <template> is still very useful in this approach, but template as it exists today, without any magic symbols or interpolation. It's useful as a way to clone a chunk of HTML that you think manipulate via a CSS-like DSL.

Okay, yes, perhaps we aren't totally apart then.  I can vouch that the basic premise has some validity (from my perspective) -- from my experience,  css-like dsl, combined with templates (in a very light way, which I only evaluate when dependent host props change, which is fairly easy to implement in userland) combined with custom enhancements / custom attributes like wordpress is looking at, that also can be attached based on css-like dsl, is quite powerful, and I think quite compatible with all backend technologies.  I do think you are onto something, but I guess it's a matter of degree that separates us.  

I also think language neutral binding syntax can work with [asp.net, at least](https://www.codeproject.com/Articles/233896/ASP-NET-MVC-Add-HTML-Microdata-to-Your-Application).


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

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

Received on Friday, 10 November 2023 23:31:45 UTC