First bit

This commit is contained in:
WBHarry 2025-06-27 22:20:52 +02:00
parent c44a7d5403
commit ddd4672ba3
5 changed files with 99 additions and 3 deletions

View file

@ -11,6 +11,8 @@ export default class RegisterHandlebarsHelpers {
includes: this.includes,
debug: this.debug,
signedNumber: this.signedNumber,
cleanClass: this.cleanClass,
tertiary: this.tertiary,
length: this.length,
switch: this.switch,
case: this.case,
@ -137,4 +139,12 @@ export default class RegisterHandlebarsHelpers {
console.log(a);
return a;
}
static cleanClass(className) {
return className.replaceAll('.', '-');
}
static tertiary(condition, a, b) {
return condition ? a : b;
}
}