0.1.5 • Published 10 years ago

gulp-handlebars-michael v0.1.5

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

(PLUGIN AUTHOR: Please read Plugin README conventions, then delete this line)

gulp-hanlebars-michael

This is a simple plugin to compile handlebars template (only ".handlebars" to ".js" file)

hanlebars plugin for gulp

Usage

First, install gulp-hanlebars-michael as a development dependency:

npm install --save-dev gulp-hanlebars

Then, add it to your gulpfile.js:

var gulp = require("gulp");
var gutil = require("gulp-util");
var handlebars = require("gulp-handlebars-michael");
var	rename = require("gulp-rename");


gulp.task("default", function () {
  gulp
	.src('./*.handlebars')
	.pipe(handlebars())
	.pipe(rename(function(path) {
		path.extname = '.js'
	}))
	.pipe(gulp.dest('./compiled'))
});

License

Michael Chiche

MIT License

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago