0.1.0 • Published 9 years ago

gulp-jst-extend v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gulp-jst-extend

gulp plugin to compile underscore / lodash templates to js file(s).

Inspired by module gulp-jst-concat but this plugin add cmd/amd support, and will add more features soon.

Install

Install using npm.

$ npm install gulp-jst-extend

Usage

gulp.task('jst', function() {
    var jst = require('gulp-jst-extend');

    return gulp.src(['./tmpl/*.{html,tpl}'])
        .pipe(jst('tmpl.js', {renameKeys: ['.*\/t-([^\.]+)\.(?:html|tpl)$', '$1']}))
        .pipe(gulp.dest('js/'));
});

More details please goto gulp-jst-concat.

License

MIT