gulp-ect-simple
v0.1.0
Published
Gulp plugin to compile ect.js template engine.
Downloads
36,078
Readme
gulp-ect-simple
Gulp plugin to compile with ect
Installation
npm install --save-dev gulp-ect-simple
Usage
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'));
});
API
ect(arg)
arg.options
Type: Object
, Default: {}
Optional parameter for new ECT instance.
See baryshev/ect for more information.
arg.data
Type: Object
, Default: {}
The template context data.