gulp-html2string
A Gulp plugin that converts static HTML templates to JavaScript strings.
Code derived from gulp-html2js.
Installation
npm install gulp-html2string
Usage
In your project's gulpfile.js, create the following task:
var html2string = ; gulp;
Then run
gulp html2js
and your converted JS files will be saved under ./templates/.
Tests
Run
npm run test
See /test/test.js for an example usage.