}).pipe(function (req) { return velocity({ root: './src/vm/', encoding: 'utf-8', dataPath: './', globalMacroPath: './src/vm/' }); }));
gulp.task('tpl', function() { gulp.src(config.tpl_config.root + '**/*.vm') .pipe(plumber()) .pipe( velocity(config.tpl_config) .on('error', gutil.log) ) .pipe(rename({ extname:".html" })) .pipe(gulp.dest(config.tmp_output)); });