Miss any of our Open RFC calls?Watch the recordings here! »

gulp-ect-simple

0.1.0 • Public • Published

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.

Install

npm i gulp-ect-simple

DownloadsWeekly Downloads

41

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar