0.0.7 • Published 6 years ago

gulp-ejs-json v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

gulp-ejs-json Build Status

ejs gulp plugin: static controller with ejs(template engine)

Install

$ npm install --save-dev gulp-ejs-json

Usage

var gulp = require('gulp');
var ejsJson = require('gulp-ejs-json');
var gutil = require('./node_modules/gulp/node_modules/gulp-util');

gulp.task('default', function() {
	return gulp.src('models/demo.json')
	    .pipe(ejsJson({ filename: 'views/demo.ejs' }).on('error', gutil.log))
	    .pipe(gulp.dest('dist'));
});

API

ejsJson(options)

options(as ejs options)

filename

Type: string
Default: null

view path: 'views/demo.ejs'.

License

MIT © woods-ming

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago