18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
/**
|
|
* 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
|
|
"systems/blades-in-the-dark/templates/parts/coins.html",
|
|
"systems/blades-in-the-dark/templates/parts/attributes.html"
|
|
];
|
|
|
|
// Load the template parts
|
|
return loadTemplates(templatePaths);
|
|
};
|