mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
First bit
This commit is contained in:
parent
c44a7d5403
commit
ddd4672ba3
5 changed files with 99 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue