Shadowrun6eUltimaniaSys/module/helpers/templates.mjs

17 lines
675 B
JavaScript
Raw Normal View History

2024-05-20 09:59:52 +00:00
/**
* Define a set of template paths to pre-load
* Pre-loaded templates are compiled and cached for fast access when rendering
* @return {Promise}
*/
export const preloadHandlebarsTemplates = async function () {
return loadTemplates([
// Actor partials.
'systems/shadowrun-6e-ultimate/templates/actor/parts/actor-features.hbs',
'systems/shadowrun-6e-ultimate/templates/actor/parts/actor-items.hbs',
'systems/shadowrun-6e-ultimate/templates/actor/parts/actor-spells.hbs',
'systems/shadowrun-6e-ultimate/templates/actor/parts/actor-effects.hbs',
// Item partials
'systems/shadowrun-6e-ultimate/templates/item/parts/item-effects.hbs',
]);
};