Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc