Get the module foundations and the Artist app created

This commit is contained in:
Oliver 2026-01-17 21:54:41 -07:00
parent 8744b6c562
commit ffa2162fbd
20 changed files with 590 additions and 0 deletions

14
module/utils/dialogs.mjs Normal file
View file

@ -0,0 +1,14 @@
import { filePath } from "../consts.mjs";
const { DialogV2 } = foundry.applications.api;
const { renderTemplate } = foundry.applications.handlebars;
export async function promptViaTemplate(title, template, context = {}) {
const content = await renderTemplate(filePath(template), context);
return DialogV2.input({
window: {
title,
},
content,
});
};