Skip to content

188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.

License

Notifications You must be signed in to change notification settings

MaxMood96/handlebars-helpers

Repository files navigation

handlebars-helpers NPM version Build Status

More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, YUI, Ghost or any node.js/Handlebars project.

Install with npm

npm i handlebars-helpers --save

Usage

var helpers = require('handlebars-helpers');
//=> returns object with all 130+ helpers

Get a specific collection

var helpers = require('handlebars-helpers')('math');
//=> only the `math` helpers

var helpers = require('handlebars-helpers')('collections');
//=> only the `collections` helpers

Get multiple collections

var helpers = require('handlebars-helpers')(['url', 'string']);
//=> helpers from both `url` and `string`

Helpers

Currently 138 helpers organized into the following categories:

Documentation

Handlebars.js is currently the default template library for assemble. By default, Handlebars.js ships with some built-in helpers, such as {{#each}}, {{#if}} and {{#unless}}. Here is how helpers work:

  • A Handlebars helper call is a simple identifier, followed by zero or more parameters (separated by space).
  • Each parameter is a Handlebars expression.
  • Handlebars helpers can be accessed from any context in a template.

Credit

When this library was initially created a number of the helpers were sourced from Swag, by Elving Rodriguez. Thanks, Elving, for your hard work on Swag.

Authors

Jon Schlinkert

Brian Woodward

License

Copyright (c) 2014-2015 Assemble
Released under the MIT license


This file was generated by verb on February 17, 2015.

About

188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%