gulp-handlebars-michael

0.1.5 • Public • Published

(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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.5
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.5
    0
  • 0.1.2
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i gulp-handlebars-michael

Weekly Downloads

2

Version

0.1.5

License

none

Last publish

Collaborators

  • michaelch