Gulp plugin for pre-compiling doT.js templates
Installing gulp-dotjsify
npm install gulp-dotjsify --save-dev
###options.type
Type: String
This options specifies the output type that will be used. Available types
amd
- AMD modulescjs
- CJS moduleses6
- ES6 modules
####usages
You can use the plugin in your gulpfile.js
var gulp = require('gulp');
var dotjsify = require('gulp-dotjsify');
gulp.task('default', function () {
gulp.src('./path/to/dotjs/templates/*.dot')
.pipe(dotjsify({
type: 'cjs'
}))
.pipe(gulp.dest('./precompiled/result'));
});