1.0.9 • Published 11 years ago
browserify-html2string v1.0.9
browserify-html2string
browserify transform plugin for export html to string
Installation
npm install browserify-html2string
Usage
In book.html:
<dl>
<dt>{{book.name}}</dt>
<dd>{{book.author}}</dd>
<dd>{{book.publisher}}</dd>
</dl>In module book.js require book.html:
var htmlStr = require('./book.html');htmlStr hold the string of book.html.
Then browserify your module with the transform plugin:
browserify --transform browserify-html2string book.js