MCPcopy
hub / github.com/handlebars-lang/handlebars.js / addHelpers

Function addHelpers

lib/handlebars/runtime.js:438–444  ·  view source on GitHub ↗
(mergedHelpers, helpers, container)

Source from the content-addressed store, hash-verified

436}
437
438function addHelpers(mergedHelpers, helpers, container) {
439 if (!helpers) return;
440 Object.keys(helpers).forEach(helperName => {
441 let helper = helpers[helperName];
442 mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
443 });
444}
445
446function passLookupPropertyOption(helper, container) {
447 const lookupProperty = container.lookupProperty;

Callers 1

templateFunction · 0.85

Calls 1

passLookupPropertyOptionFunction · 0.85

Tested by

no test coverage detected