refactor: simplify registration of handlebars partials

This commit is contained in:
Johannes Loher 2021-11-30 19:04:00 +01:00
parent 0bbfdaf381
commit 9eaae536f2

View file

@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
export default function registerHandlebarsHelpers(): void { export default function registerHandlebarsHelpers(): void {
Object.entries(helpers).forEach(([key, helper]) => Handlebars.registerHelper(key, helper)); Handlebars.registerHelper(helpers);
} }
const helpers = { const helpers = {