Re: [WICG/webcomponents] Functionally complete declarative templating (Issue #997)

@bahrus , `templ-mount`, as I see it, the all-in-one POC: shadow DOM, loading, custom element, etc. It is not a proposal yet.  This proposal is leaving the insulation and scoping, loading props, custom components, etc. out of equation. Those aspects would be addressed in separate proposals. Now about aspect which is **not in scope** of this proposal.

**Shadow root** The proposal is leaving the scoping with or without shadow root. POC gives the non-shadow root solution but could be altered to support various scopes once those clearly defined. I do not see the comprehensive proposal so far. 

**No JS**. This proposal is about pure declarative syntax of template, no JS involved. The **declarative-first** approach would allow to hook JS up but not be driven by JS, rather by browser engine. It would allow to run the page or microapplication inside with **JS disabled** option. The JS insulation and scoping would come as a part of microapplication container proposal separately.

**Custom Element** syntax would come in separate proposal, it is a part of POC though. The syntax seems to be aligned with previous discussions but quite different from `templ-mount`.

**remote request props**. Are not addressed in this proposal, good idea though as in dependent WICG proposal. In [http-request](https://unpkg.com/@epa-wg/custom-element@0.0.9/demo/http-request.html) part of POC for this proposal it is addressed in different declarative-first manner, i.e. via attributes without JSON kind syntax. But I agree that request parameters have to be configurable for all kind of content, not just for data layer as in POC. It worth a separate proposal. Would be glad to join the discussion or pair on creation.


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

Message ID: <WICG/webcomponents/issues/997/1496840075@github.com>

Received on Wednesday, 5 April 2023 02:38:13 UTC