Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gulp-handlebars-michaelpublic

    (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

    Keywords

    none

    install

    npm i gulp-handlebars-michael

    Downloadsweekly downloads

    1

    version

    0.1.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar