https://github.com/vanillawc/wc-template
Template HTML with tagged template literals
https://github.com/vanillawc/wc-template
literal tagged template vanilla web-components
Last synced: 12 months ago
JSON representation
Template HTML with tagged template literals
- Host: GitHub
- URL: https://github.com/vanillawc/wc-template
- Owner: vanillawc
- License: mit
- Created: 2019-12-24T02:59:21.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T17:24:35.000Z (about 5 years ago)
- Last Synced: 2025-05-22T11:28:56.639Z (about 1 year ago)
- Topics: literal, tagged, template, vanilla, web-components
- Language: JavaScript
- Homepage:
- Size: 386 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
<wc-template> Tagged Template Literals in HTML
## Installation
*Installation*
```sh
npm i @vanillawc/wc-template
```
*Import from NPM*
```html
```
*Import from CDN*
```html
```
## Demo
Try it on [WebComponents.dev](https://webcomponents.dev/edit/BggRSZ5D4tmsyce94mpB?sv=1&pm=1)
## Usage
**Attributes**
- `src` - load an external source file
- `context` - load the tags from an external endpoint
### Basic Usage
```html
```
## Context
If the template is a tagged template literal, context can be provided via an external endpoint.
```html
```
## Contributing
See [CONTRIBUTING.md](https://github.com/vanillawc/vanillawc/blob/main/CONTRIBUTING.md)