node package manager

gulp-handlebars-michael

(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