gulp-jst-extend

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i gulp-jst-extend

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dmyang