core/local/templates/loader

Description:
  • Template this.

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

Template this.

Members

(inner) cachePartialPromises :Array.<Promise>

Description:
  • Cache of already loaded template partial promises

Source:

Cache of already loaded template partial promises

Type:
  • Array.<Promise>

(inner) isLoadingTemplates :Bool

Description:
  • Whether templates are currently being loaded

Source:

Whether templates are currently being loaded

Type:
  • Bool

(inner) loadTemplateBuffer :Array.<Object>

Description:
  • List of templates to be loaded

Source:

List of templates to be loaded

Type:
  • Array.<Object>

(inner) templateCache :Map

Description:
  • Cache of already loaded template strings

Source:

Cache of already loaded template strings

Type:
  • Map

(inner) templatePromises :Array.<Promise>

Description:
  • Cache of already loaded template promises

Source:

Cache of already loaded template promises

Type:
  • Array.<Promise>

(inner) themeName :String

Description:
  • for the current render

Source:

for the current render

Type:
  • String

Methods

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

Description:
  • Cache the template partials for the specified template.

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

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

Description:
  • A helper to get the search key

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

(static) getTemplateFromCache(searchKey) → {string}

Description:
  • Fetch a template from the cache.

Source:
Parameters:
Name Type Description
searchKey string
Returns:
Type
string

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

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