View/HbsHelpers

Handlebars helpers.

These functions are to be used in Handlebars templates.

Example:

// to register all the helpers at once
Handlebars.registerHelper(require('view/hbs-helpers'));

// to register a single helper
const HbsHelpers = require('view/hbs-helpers');
Handlebars.registerHelper('fieldOfType', HbsHelpers.fieldOfType);