Detalhes do pacote

gulp-jst-util

wilsonXo6ISC1.0.7

precompile html to underscore template

gulp, underscore, jst, template

readme (leia-me)

gulp-jst-util

compile template of underscore file in to javascript

useage:


    gulp.task('template', function() {
        return gulp.src('development/tpl/**/*.html')
            .pipe(jst({
                base: 'tpl'
            }).on('error', function() {
                console.log(arguments);
            }))
            .pipe(gulp.dest('development/scripts/view/'));
});

options

  • base: releation folder name. template name split at '.' if specifition this option.