🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gulp-ect-simple

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ect-simple

Gulp plugin to compile ect.js template engine.

0.1.0
latest
npm
Version published
Maintainers
1
Created
Source

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.

Keywords

gulpplugin

FAQs

Package last updated on 19 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts