3.1.0 • Published 8 years ago

gulp-fest v3.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 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

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

0.1.0

9 years ago

1.0.0

9 years ago