/gulp-amd-jst

Compile underscore templates to a JST file using gulp.( support amd support amd)

Primary LanguageJavaScript

gulp-amd-jst Build Status

Compile lodash templates to a JST file using gulp.

Install

Install using npm.

npm install gulp-amd-jst --save-dev

Usage

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']);

Note: This code is a gulp-jst revision

jst(options)

gulp-jst accepts the same _.template options as the lodash library.