2020-04-21 06:51:49 +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() {
|
|
|
|
|
|
|
|
// Define template paths to load
|
|
|
|
const templatePaths = [
|
|
|
|
|
|
|
|
// Actor Sheet Partials
|
2020-04-23 16:11:04 +00:00
|
|
|
"systems/blades-in-the-dark/templates/parts/coins.html",
|
2020-04-25 11:32:34 +00:00
|
|
|
"systems/blades-in-the-dark/templates/parts/attributes.html",
|
2020-05-04 10:10:57 +00:00
|
|
|
"systems/blades-in-the-dark/templates/parts/turf-list.html",
|
|
|
|
"systems/blades-in-the-dark/templates/parts/cohort-block.html"
|
2020-04-21 06:51:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
// Load the template parts
|
|
|
|
return loadTemplates(templatePaths);
|
|
|
|
};
|