Fixed up data model and a basic placeholder template

This commit is contained in:
WBHarry 2025-06-08 18:49:42 +02:00
parent 746e0f239a
commit ece00c4fcb
15 changed files with 300 additions and 145 deletions

View file

@ -11,6 +11,7 @@ export default class RegisterHandlebarsHelpers {
includes: this.includes,
debug: this.debug,
signedNumber: this.signedNumber,
length: this.length,
switch: this.switch,
case: this.case
});
@ -82,6 +83,10 @@ export default class RegisterHandlebarsHelpers {
return number >= 0 ? `+${number}` : number;
}
static length(obj) {
return Object.keys(obj).length;
}
static switch(value, options) {
this.switch_value = value;
this.switch_break = false;