gulp-ect
Gulp plugin to compile ect.js template engine
Install
Install with npm
npm install --save-dev gulp-ect
Example
js
var gulp = ;var ect = ; gulp; gulp;
coffee
ect = require'ect'gulptask 'ect'-> gulp src'./src/*.ect' pipeect pipe gulpdest'./out' gulptask 'default''ect'
API
ect(options)
options.ext
Type: String
Default: .ect
The extensions input files.
options.outExt
Type: String
Default: .html
The extensions output files.
options.data
Type: Function or Object
Default: {}
The template context data.
If a function is passed, use the format function(fileName,callback) and fire callback as callback(data):
gulp ;
License
MIT © Vladislav Derjavin dev@vld.me