- From: James Browning <notifications@github.com>
- Date: Sun, 14 Mar 2021 14:21:46 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 14 March 2021 21:21:58 UTC
A declarative html registry could be another option e.g.:
```js
<head>
<registry id="my-element-registry">
<link rel="customelementdefinition" name="some-element-1" url="path/to/some-element-1.js"/>
<link rel="customelementdefinition" name="some-element-2" url="path/to/some-element-2.js"/>
</registry>
</head>
<my-element>
<not-scoped>content</not-scoped>
<template shadowroot="open" registry="my-element-registry">
<some-element-1><slot></slot></some-element-1>
<some-element-2></some-element-2>
</template>
</my-element>
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/914#issuecomment-798982078
Received on Sunday, 14 March 2021 21:21:58 UTC