Add a systemFilePath handlebars helper for better file path referencing

This commit is contained in:
Oliver-Akins 2025-07-24 20:23:42 -06:00
parent cd2c06dc35
commit db3cad909e
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
import { filePath } from "../consts.mjs";
export default {
systemFilePath: filePath,
};

View file

@ -13,6 +13,7 @@ import { registerWorldSettings } from "../settings/world.mjs";
// Utils
import { __ID__ } from "../consts.mjs";
import helpers from "../handlebarsHelpers/_index.mjs";
import { Logger } from "../utils/Logger.mjs";
import { registerCustomComponents } from "../apps/elements/_index.mjs";
@ -33,6 +34,8 @@ Hooks.on(`init`, () => {
},
);
registerCustomComponents();
registerWorldSettings();
registerCustomComponents();
Handlebars.registerHelper(helpers);
});