const _templatePaths = ['powerDialog.html']; export async function preloadTemplates() { return loadTemplates(_templatePaths.map((f) => `modules/swade-mb-helpers/templates/${f}`)); } function templateMap() { const templates = {}; for (const file of _templatePaths) { templates[file] = `modules/swade-mb-helpers/templates/${file}`; } return templates; } export const templates = templateMap();