core/local/templates/loader

Template this.

Source:
Since:
  • 4.3
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(inner) cachePartialPromises :Array.<Promise>

Source:

Cache of already loaded template partial promises

Type:
  • Array.<Promise>

(inner) isLoadingTemplates :Bool

Source:

Whether templates are currently being loaded

Type:
  • Bool

(inner) loadTemplateBuffer :Array.<Object>

Source:

List of templates to be loaded

Type:
  • Array.<Object>

(inner) templateCache :Map

Source:

Cache of already loaded template strings

Type:
  • Map

(inner) templatePromises :Array.<Promise>

Source:

Cache of already loaded template promises

Type:
  • Array.<Promise>

(inner) themeName :String

Source:

for the current render

Type:
  • String

Methods

(async, static) _cachePartials(templateName, themeName, parentage) → {promise.<string>}

Source:

Cache the template partials for the specified template.

Parameters:
Name Type Description
templateName string
themeName string
parentage array
Returns:
Type
promise.<string>

(static) getSearchKey(theme, templateName) → {string}

Source:

A helper to get the search key

Parameters:
Name Type Description
theme string
templateName string
Returns:
Type
string

(static) getTemplateFromCache(searchKey) → {string}

Source:

Fetch a template from the cache.

Parameters:
Name Type Description
searchKey string
Returns:
Type
string

(static) getTemplatePromiseFromCache(searchKey) → {Object|null}

Source:

Search the various caches for a template promise for the given search key. The search key should be in the format //