Add files via upload

This commit is contained in:
CK 2020-06-24 14:23:55 -04:00 committed by GitHub
parent 8d1045325f
commit 0106a61b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1501 additions and 0 deletions

25
module/templates.js Normal file
View file

@ -0,0 +1,25 @@
/**
* 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/sw5e/templates/actors/parts/actor-traits.html",
"systems/sw5e/templates/actors/parts/actor-inventory.html",
"systems/sw5e/templates/actors/parts/actor-features.html",
"systems/sw5e/templates/actors/parts/actor-powerbook.html",
// Item Sheet Partials
"systems/sw5e/templates/items/parts/item-action.html",
"systems/sw5e/templates/items/parts/item-activation.html",
"systems/sw5e/templates/items/parts/item-description.html"
];
// Load the template parts
return loadTemplates(templatePaths);
};