Skip to content

muniere/gulp-ect-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple ect file compiler with gulp

Resources

License

Stars

Watchers

Forks

Packages

No packages published