3.1.0 • Published 9 years ago

gulp-fest v3.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

gulp-fest Build Status

Gulp plugin for compiling and rendering fest templates

Install

$ npm install --save-dev gulp-fest

Usage

var fest = require('gulp-fest');
var gulp = require('gulp');

gulp.task('default', function () {
	return gulp.src('src/*.xml')
		.pipe(fest())
		.pipe(gulp.dest('.tmp'))
		.pipe(fest.render({
			foo: 'bar'
		}, {
			ext: '.htm'
		}))
		.pipe(gulp.dest('dist'));
});

API

fest(options)

options

Type: object Default:

{
	require: 'fest',	// path to fest module
	name: undefined,	// name of result function,
						// if `true` it is a stem of the template,
						// if `string` it is a name
						// if undefined it will result to anonymous function
	ext: '.js',			// extension of result file
	compile: {			// fest.compile options
		beautify: false,
		debug: false,
		std: false
	}
}

fest.render(data , options)

data

Type: object|string JSON object or path to JSON file

options

Type: object

Default:

{
	ext: '.html',			// extension of result file
}
3.1.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

10 years ago

1.0.5

10 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

0.1.0

11 years ago

1.0.0

11 years ago