0.0.1 • Published 5 years ago
es6-template-polyfill v0.0.1
template-polyfill
An ES6 importable polyfill for the HTML5 <template>
tag.
The code is from Brian Blakely's JSFiddle. Packaged up so that people can use it via npm.
Forked from Jeff Carpenter's Github. Packaged up so that people can use it via npm with ES6 imports.
Usage
yarn add template-polyfill
import { templatePolyfill } from "es6-template-polyfill"
templatePolyfill()
You'll also need to put this in your CSS:
template {
display: none !important;
}
0.0.1
5 years ago