Add a systemFilePath handlebars helper for better file path referencing
This commit is contained in:
parent
cd2c06dc35
commit
db3cad909e
2 changed files with 9 additions and 1 deletions
5
module/handlebarsHelpers/_index.mjs
Normal file
5
module/handlebarsHelpers/_index.mjs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { filePath } from "../consts.mjs";
|
||||
|
||||
export default {
|
||||
systemFilePath: filePath,
|
||||
};
|
||||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue