Skip to content

connorsmallman/template-polyfill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
}

About

A polyfill for the HTML5 <template> tag.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%