示例#1
0
 }).pipe(function (req) {
   return velocity({
     root: './src/vm/',
     encoding: 'utf-8',
     dataPath: './',
     globalMacroPath: './src/vm/'
   });
 }));
示例#2
0
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));

});