Skip to content
Browserify transform module for requiring html files through domify.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.