@hidoo/handlebars-helpers
v1.1.0
Published
A helper library that summarizes commonly used functions in Handlebars.
Downloads
62
Readme
@hidoo/handlebars-helpers
A helper library that summarizes commonly used functions in Handlebars.
Installation
npm install --save handlebars @hidoo/handlebars-helpers
Usage
import Handlebars from 'handlebars';
import * as helpers from '@hidoo/handlebars-helpers';
Object.entries(helpers).forEach(([name, helper]) =>
Handlebars.registerHelper(name, helper);
);
via register API:
import Handlebars from 'handlebars';
import register from '@hidoo/handlebars-helpers/register';
register(Handlebars);
Test
pnpm test
License
MIT