Fixed up data model and a basic placeholder template (#117)

This commit is contained in:
WBHarry 2025-06-09 13:25:43 +02:00 committed by GitHub
parent 746e0f239a
commit ad0acd62cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;