Handlebars helpers that we usually need
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.npmrc
LICENSE.md
README.md
index.js
package.json

README.md

Core Handlebars Helpers

Latest Documentation

Usage

npm install --save-dev cloudfour/core-hbs-helpers.git

Using vanilla Handlebars

var helpers = require('core-hbs-helpers');
var Handlebars = require('handlebars');

helpers.forEach(function (helper) {
  Handlebars.registerHelper(helper.name, helper);
});

Using gulp-compile-handlebars

var gulp = require('gulp');
var handlebars = require('gulp-compile-handlebars');
var helpers = require('core-hbs-helpers');

gulp.task('default', function () {
  return gulp.src('*.hbs')
    .pipe(handlebars({
      helpers: helpers
    }))
    .pipe(gulp.dest('./dist'));
});