Finish the weapons block styling and make it so that I can use IDs in the sheet without crying
This commit is contained in:
parent
fae962dc7e
commit
99dd7b791a
8 changed files with 242 additions and 104 deletions
|
|
@ -19,7 +19,14 @@ Hooks.on(`hotReload`, async (data) => {
|
|||
};
|
||||
|
||||
// Re-register our new partial template & cache it.
|
||||
const templateName = `dotdungeon.${data.path.split("/").pop().replace(".hbs", "")}`;
|
||||
const alias = data.path
|
||||
.split(`/`)
|
||||
.pop()
|
||||
.split(`.`)
|
||||
.slice(0, -1)
|
||||
.reverse()
|
||||
.join(`.`);
|
||||
const templateName = `dotdungeon.${alias}`;
|
||||
Handlebars.registerPartial(templateName, template);
|
||||
_templateCache[templateName] = template;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue