tr-domify

0.1.0 • Public • Published

tr-domify

Browserify transform module for requiring html files through domify.

Usage

With npm do:

npm install tr-domify

This will also install domify as a peerDependency.

Then in your browser code you can do:

var template = require('./templates/example.html');
var el = template.cloneNode(true);

so you get a DOM object you can clone, ready to insert into the DOM.

To know more about Browserify transforms

https://github.com/substack/node-browserify#btransformopts-tr

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i tr-domify

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • acstll