0.0.20160310 • Published 9 years ago
gulp-ztpl-compiler v0.0.20160310
gulp-ztpl-compiler
gulp plugin for compiling templates using zero-text/template
usage
$ npm install gulp-ztpl-compiler --save-dev
var gulp = require('gulp');
var compileTemplate = require('gulp-ztpl-compiler');
var path = require('path');
gulp.task('ztpl', function () {
return gulp.src([
path.resolve(__dirname, './src/**/*.html'),
path.resolve(__dirname, './src/**/*.ztpl')
])
.pipe(compileTemplate({
template: 'umd' // one of ['amd', 'umd', 'commonjs', 'esnext'], or a zero template string
}))
.pipe(gulp.dest(path.resolve(__dirname, './src/')));
});
0.0.20160310
9 years ago
0.0.20160309
9 years ago