foundryvtt-beam-saber/module/templates.js
Peter Varaksin 6a10138291 GH-1 Add Cohort functionality
- Closes #1
- Adds cohort functionality and styles
- Adds Cohort block view
- Adds "Add Item" functionality
- CSS design fixes
2020-05-04 13:10:57 +03:00

21 lines
642 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",
"systems/blades-in-the-dark/templates/parts/turf-list.html",
"systems/blades-in-the-dark/templates/parts/cohort-block.html"
];
// Load the template parts
return loadTemplates(templatePaths);
};