template-polyfill

v1.0.0
A polyfill for the HTML5 <template> tag.

template-polyfill

npm

A polyfill for the HTML5 <template> tag.

The code is from Brian Blakely's JSFiddle. Packaged up so that people can use it via npm.

Usage

npm install template-polyfill
var templatePolyfill = require('template-polyfill')

templatePolyfill()

You'll also need:

<script>
// In your <head> tag
document.createElement('template');
</script>
/* In your CSS */
template {
  display: none !important;
}

Metadata

  • MIT
  • Whatever
  • Jeff Carpenter
  • released 4/26/2016

Downloads

Maintainers