npm install gulp-underscore-tpl```
npm install gulp-underscore-tpl --save
options see underscore template.
``
var template = require('gulp-underscore-tpl')
gulp.task('tpl', function() {
return gulp.src('tpl/*.html')
.pipe(template(/options/))
.pipe(gulp.dest('js/tpl'))
});
tpl.html
``<%= name%>
```
module.exports = function(data){
var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
__p+=''+
';
((__t=( name))==null?'':__t)+
'
return __p;
};