Skip to main content

Home > @jsplumbtoolkit/templates-2 > Recado > parseAndCache

Recado.parseAndCache() method

Resolve, parse and then cache the template with the given id. If the template has already been resolved and parsed, return the parsed value, unless forceReload is set to true.

Signature:

parseAndCache(templateId: string, templateResolver?: TemplateResolver, forceReload?: boolean): Array<AbstractEntry>;

Parameters

ParameterTypeDescription
templateIdstring
templateResolverTemplateResolver
forceReloadboolean

Returns:

Array<AbstractEntry>