Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 572 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 572 Bytes

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 to put this in your CSS:

template {
  display: none !important;
}