wilsonXo / gulp-jst-util

compile template of underscore file in to javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

compile template of underscore file in to javascript


Languages

Language:JavaScript 100.0%