gulp-razor-tmpl
gulp plugin for razor-tmpl
Install
$ npm i gulp-razor-tmpl --save-dev
Usage
in gulpfile.js
var razor = ;gulp
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> console.log
License
MIT