Gulp plugin to compile with ect
npm install --save-dev gulp-ect-simple
var gulp = require('gulp');
var ect = require('gulp-ect-simple');
gulp.task('ect', function(){
return gulp.src('./templates/*.ect')
.pipe(ect({
options: {
root: 'app/views',
ext: '.ect'
},
data: {
message: 'Hello, World!',
name: 'Bob'
}
}))
.pipe(gulp.dest('./dist'));
});
Type: Object
, Default: {}
Optional parameter for new ECT instance.
See baryshev/ect for more information.
Type: Object
, Default: {}
The template context data.