déplacement du helper Handlebars
Tous les helpers sont déclarés dans RdDUtility
This commit is contained in:
parent
da56316e42
commit
7f0e58b216
@ -222,9 +222,6 @@ Hooks.once("init", async function () {
|
|||||||
Items.registerSheet("foundryvtt-reve-de-dragon", RdDItemSheet, { makeDefault: true });
|
Items.registerSheet("foundryvtt-reve-de-dragon", RdDItemSheet, { makeDefault: true });
|
||||||
CONFIG.Combat.entityClass = RdDCombatManager;
|
CONFIG.Combat.entityClass = RdDCombatManager;
|
||||||
|
|
||||||
// Handlebar function pour container
|
|
||||||
Handlebars.registerHelper('buildConteneur', (objet) => { return RdDUtility.buildConteneur(objet); });
|
|
||||||
|
|
||||||
// Patch the initiative formula
|
// Patch the initiative formula
|
||||||
_patch_initiative();
|
_patch_initiative();
|
||||||
|
|
||||||
|
@ -275,6 +275,7 @@ export class RdDUtility {
|
|||||||
Handlebars.registerHelper('le', str => Grammar.articleDetermine(str));
|
Handlebars.registerHelper('le', str => Grammar.articleDetermine(str));
|
||||||
Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str));
|
Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str));
|
||||||
Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args));
|
Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args));
|
||||||
|
Handlebars.registerHelper('buildConteneur', (objet) => { return RdDUtility.buildConteneur(objet); });
|
||||||
|
|
||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user