Nietzsche's Preposterous Moustache

    @hidoo/handlebars-helpers

    0.8.2 • Public • Published

    @hidoo/handlebars-helpers

    A helper library that summarizes commonly used functions in Handlebars.

    Installation

    $ npm install 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

    $ yarn test

    License

    MIT

    Keywords

    Install

    npm i @hidoo/handlebars-helpers

    DownloadsWeekly Downloads

    140

    Version

    0.8.2

    License

    MIT

    Unpacked Size

    47.4 kB

    Total Files

    30

    Last publish

    Collaborators

    • hidoo