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
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`
Currently 138 helpers organized into the following categories:
- code
- collections
- comparisons
- data
- dates
- fs
- html
- i18n
- inflections
- logging
- _inspect
- bold
- debug
- error
- info
- log
- warn
- markdown
- math
- misc
- numbers
- path
- string
- url
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.
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.
Jon Schlinkert
Brian Woodward
Copyright (c) 2014-2015 Assemble
Released under the MIT license
This file was generated by verb on February 17, 2015.