0.1.0 • Published 9 years ago

gulp-ect-simple v0.1.0

Weekly downloads
142
License
MIT
Repository
github
Last release
9 years ago

gulp-ect-simple

Build Status

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.