déplacement du helper Handlebars

Tous les helpers sont déclarés dans RdDUtility
This commit is contained in:
Vincent Vandemeulebrouck 2021-02-25 02:08:21 +01:00
parent da56316e42
commit 7f0e58b216
2 changed files with 1 additions and 3 deletions

View File

@ -222,9 +222,6 @@ Hooks.once("init", async function () {
Items.registerSheet("foundryvtt-reve-de-dragon", RdDItemSheet, { makeDefault: true });
CONFIG.Combat.entityClass = RdDCombatManager;
// Handlebar function pour container
Handlebars.registerHelper('buildConteneur', (objet) => { return RdDUtility.buildConteneur(objet); });
// Patch the initiative formula
_patch_initiative();

View File

@ -275,6 +275,7 @@ export class RdDUtility {
Handlebars.registerHelper('le', str => Grammar.articleDetermine(str));
Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str));
Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args));
Handlebars.registerHelper('buildConteneur', (objet) => { return RdDUtility.buildConteneur(objet); });
return loadTemplates(templatePaths);
}