mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 20:21:06 +01:00
Fixed up data model and a basic placeholder template
This commit is contained in:
parent
746e0f239a
commit
ece00c4fcb
15 changed files with 300 additions and 145 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue