gulp-tmpl
Lodash/Underscore templates plugin for gulp 3
Usage
First, install gulp-tmpl
as a development dependency:
npm install --save-dev gulp-tmpl
Compiling to a namespace for the browser
gulp-declare can be used to compile templates for the browser. Just pipe the output of gulp-tmpl to gulp-declare:
var template = ;var declare = ; gulp;
API
template(options)
options.compilerOptions
Type: Object
Compiler options to pass to _.template
.
Credit
All the credit goes too Larry Davis. This plugin is heavily inspired (read copy) from his gulp-handlebars plugin.