0.0.1 • Published 10 years ago

gulp-razor-tmpl v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

#gulp-razor-tmpl gulp plugin for razor-tmpl

#Install $ npm i gulp-razor-tmpl --save-dev

#Usage in gulpfile.js

var razor = require('gulp-razor-tmpl');
gulp.task('build',function() {
	return gulp.src('template/**/*.razor')
		.pipe(razor())
		.pipe(gulp.dest('output'));
})

this will render template/**/*.razor to the html ext,this exmaple locates in the test folder

##Options razor(option) the option argument is optional

  • ext : target extension,default = html
  • ViewBag : the ViewBag data,default = null

##Tips just as what I have done to razor-tmpl,you can use _doc property in repl

$ node
> razor = require('gulp-razor-tmpl')
> console.log(razor._doc)

#License MIT