Resource setup finished

This commit is contained in:
WBHarry 2025-07-12 02:52:16 +02:00
parent 0c742eb91b
commit d9d7b23838
13 changed files with 104 additions and 44 deletions

View file

@ -1,7 +1,6 @@
export default class RegisterHandlebarsHelpers {
static registerHelpers() {
Handlebars.registerHelper({
emptyObject: this.emptyObject,
add: this.add,
includes: this.includes,
times: this.times,
@ -11,10 +10,6 @@ export default class RegisterHandlebarsHelpers {
});
}
static emptyObject(a) {
return !a || typeof a !== 'object' || Object.keys(a).length === 0;
}
static add(a, b) {
const aNum = Number.parseInt(a);
const bNum = Number.parseInt(b);