1.1.22 • Published 3 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
3 years ago
1.1.21
3 years ago
1.1.20
3 years ago
1.1.19
4 years ago
1.1.18
4 years ago
1.1.17
4 years ago
1.1.16
4 years ago
1.1.15
4 years ago
1.1.14
4 years ago
1.1.13
4 years ago
1.1.12
4 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
5 years ago
1.0.0-rc0
5 years ago