1.0.25 • Published 3 years ago

@vanillawc/wc-template v1.0.25

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

Installation

npm i @vanillawc/wc-template

Import from NPM

<script type="module" src="node_modules/@vanillawc/wc-template/index.js"></script>

Import from CDN

<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-template@1/index.js"></script>

Demo

Try it on WebComponents.dev

Usage

Attributes

  • src - load an external source file
  • context - load the tags from an external endpoint

Basic Usage

<wc-template src="sample.html"></wc-template>

Context

If the template is a tagged template literal, context can be provided via an external endpoint.

<wc-template src="sample2.html" theme="context.json"></wc-template>

Contributing

See CONTRIBUTING.md

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

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.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago