@cloudfour/hbs-helpers

0.11.0 • Public • Published

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.

Package Sidebar

Install

npm i @cloudfour/hbs-helpers

Weekly Downloads

49

Version

0.11.0

License

MIT

Unpacked Size

27.2 kB

Total Files

31

Last publish

Collaborators

  • cloudfour-user
  • gerardo-rodriguez
  • calebeby
  • spaceninja
  • cloudfour-paul
  • tylersticka