handlebars-helpers-sprintf-js
Wrap sprintf-js functions to Handlebars helpers
Installation
npm install handlebars-helpers-sprintf-js
Usage
Typical
Register helpers:
const helper = ; helper;
Use:
const Handlebars = ; const template = Handlebars;
In webpack.config.js
:
…const helper = ;… precompileOptions: knownHelpers: helperknownHelpers helperDirs: 'handlebars-helpers-sprintf-js' …