1.1.22 • Published 4 years ago
@vanillawc/wc-include v1.1.22
Installation
Installation
npm i @vanillawc/wc-include
Import from NPM
<script type="module" src="node_modules/@vanillawc/wc-include/index.js"></script>
Import from CDN
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-include@1/index.js"></script>
Demo
Try it on WebComponents.dev
Usage
Attributes
- shadow - if present the contents are contained in a shadowDOM
Basic Usage
The src
attribute imports the contents of the file into the lightDOM.
<wc-include src="./sample.html"></wc-include>
'shadow' Attribute Usage
When the shadow
attribute is specified, the imported contents will be encapsulated in a shadowDOM.
<wc-include src="./sample.html" shadow></wc-include>
Contributing
See CONTRIBUTING.md
1.1.22
4 years ago
1.1.21
4 years ago
1.1.20
4 years ago
1.1.19
5 years ago
1.1.18
5 years ago
1.1.17
5 years ago
1.1.16
5 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.8
5 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
1.0.0-rc0
6 years ago