Use cases:
-
<custom-element tag="dce-internal" src="#template1">
- reference the template in page DOM -
<custom-element src="#template2"></custom-element>
- inline instantiation, no tag -
<custom-element tag="dce-external" src="toc.html">
- external file -
<custom-element tag="dce-hash" src="../index.html#shared-template">
- by ID in external file -
<custom-element tag="dce-hash" src="embed-1.html" >
- external file with embedding of another external DCE -
<custom-element tag="dce-hash" src="../index.html#shared-template" >
- deep external files, complex rendering - own import maps
- deep external files with own import maps
- local template as a “loading…” or fallback for remote , error handling
Out of scope:
- DCE tag name
- DCE template
DCE as DWA container
The DCE is a container for Declarative Web Application which, of course can be run standalone. It would require the page itself be treated as template, the proposal is coming. In worst case the browser plugin, bookmarklet, and self-served polyfill would be provided as part of implementation/POC.
third party web page into a web component
The DWA purpose is to be embedded into 3rd party apps via DCE as a container. That is a main web 3.0 feature addressed by DWA/DCE. This proposal enables the DWA serving by DCE.