This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
foundryvtt-beam-saber/module/blades-templates.js

23 lines
777 B
JavaScript
Raw Normal View History

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",
"systems/blades-in-the-dark/templates/parts/attributes.html",
"systems/blades-in-the-dark/templates/parts/turf-list.html",
2021-04-22 11:27:10 +00:00
"systems/blades-in-the-dark/templates/parts/cohort-block.html",
2021-06-10 22:57:01 +00:00
"systems/blades-in-the-dark/templates/parts/factions.html",
"systems/blades-in-the-dark/templates/parts/active-effects.html",
2020-04-21 06:51:49 +00:00
];
// Load the template parts
return loadTemplates(templatePaths);
};