New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-ect

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ect

Gulp plugin to compile ect.js template engine.

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-48.89%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-ect

Gulp plugin to compile ect.js template engine

Install

Install with npm

npm install --save-dev gulp-ect

Example

js

var gulp = require('gulp');
var ect = require('ect');

gulp.task('ect', function(){
  gulp.src('./src/*.ect')
      .pipe(ect())
      .pipe(gulp.dest('./out'));
});

gulp.task('default', ['ect']);

coffee

ect = require('ect')
gulp.task 'ect', ->
  gulp
    .src('./src/*.ect')
    .pipe(ect())
    .pipe gulp.dest('./out')

gulp.task 'default', ['ect']

API

ect(options)

options.ext

Type: String
Default: .ect

The extensions input files.

options.outExt

Type: String
Default: .html

The extensions output files.

options.data

Type: Function or Object
Default: {}

The template context data.

If a function is passed, use the format function(fileName,callback) and fire callback as callback(data):

  gulp.src(['./src/*.ect', './src/inner/*.ect'])
    .pipe(ect({data: function (filename, cb) {
      cb({foo: "bar"});
    }}))
    .pipe(gulp.dest('./out'));

License

MIT © Vladislav Derjavin dev@vld.me

Keywords

FAQs

Package last updated on 18 Mar 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