0.3.2 • Published 9 years ago

gulp-gorender v0.3.2

Weekly downloads
1
License
BSD
Repository
github
Last release
9 years ago

gulp-gorender

Gulp plugin to render files with Go text.Template template engine.

Install

$ npm install --save-dev gulp-gorender

You also need to have gorender installed.

Usage

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

gulp.task('default', function () {
	return gulp.src('src/*.html', {html: true})
		.pipe(gorender({data: 'data'}))
		.pipe(gulp.dest('dist'));
});

API

gorender(options)

options

data

Type: String

The data directory.

Data files should be in JSON format.

include

Type: String

Include templates.

base

Type: String

Base template name.

html

Type: Boolean
Default: false

Use html.Template template package.

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago