Compile lodash templates to a JST file using gulp.
Install using npm.
npm install gulp-amd-jst --save-dev
var gulp = require('gulp');
var jst = require('gulp-amd-jst');
gulp.task('jst', function() {
gulp.src('input/*.html')
.pipe(jst({
amd : true,
prettify : true,
namespace : false
}
))
.pipe(gulp.dest('./output'));
});
gulp.task('default', ['jst']);
gulp-jst
accepts the same _.template options as the lodash library.