utilisation de renderTemplate "interne"

Import de foundry.applications.handlebars.renderTemplate
au travers d'une constante pour éliminer les warnings
This commit is contained in:
2025-09-30 02:03:02 +02:00
parent 053bc23d12
commit d0ba1ebf99
43 changed files with 57 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
import { ChatUtility } from "./chat-utility.js";
import { renderTemplate } from "./constants.js";
export class RdDRollResult {
@@ -13,6 +14,6 @@ export class RdDRollResult {
static async buildRollDataHtml(rollData, template = 'chat-resultat-general.hbs') {
rollData.show = rollData.show || {};
return await foundry.applications.handlebars.renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/${template}`, rollData);
return await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/${template}`, rollData);
}
}