@cloudfour/hbs-helpers

Handlebars helpers used for various Cloud Four projects.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
1010Mar 3, 2021Oct 20, 2015Minified + gzip package size for @cloudfour/hbs-helpers in KB

Readme

Core Handlebars Helpers

NPM version Latest Documentation Renovate Status

Usage

npm install --save-dev @cloudfour/hbs-helpers

Using vanilla Handlebars

var helpers = require('@cloudfour/hbs-helpers');
var Handlebars = require('handlebars');

Object.keys(helpers).forEach(function (key) {
  Handlebars.registerHelper(key, helpers[key]);
});

Using gulp-compile-handlebars

var gulp = require('gulp');
var handlebars = require('gulp-compile-handlebars');
var helpers = require('@cloudfour/hbs-helpers');

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

Documentation

See our doxdox site for complete documentation of each helper.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.