Finish the weapons block styling and make it so that I can use IDs in the sheet without crying

This commit is contained in:
Oliver-Akins 2023-12-29 23:53:26 -07:00
parent fae962dc7e
commit 99dd7b791a
8 changed files with 242 additions and 104 deletions

View file

@ -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;