2024-05-16 17:30:42 +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 () {
|
2024-05-16 17:51:39 +00:00
|
|
|
return loadTemplates([
|
|
|
|
// Actor partials.
|
|
|
|
'systems/boilerplate/templates/actor/parts/actor-features.hbs',
|
|
|
|
'systems/boilerplate/templates/actor/parts/actor-items.hbs',
|
|
|
|
'systems/boilerplate/templates/actor/parts/actor-spells.hbs',
|
|
|
|
'systems/boilerplate/templates/actor/parts/actor-effects.hbs',
|
|
|
|
// Item partials
|
|
|
|
'systems/boilerplate/templates/item/parts/item-effects.hbs',
|
|
|
|
]);
|
2024-05-16 17:30:42 +00:00
|
|
|
};
|