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
Parameter | Type | Description |
---|---|---|
templateId | string | |
templateResolver | TemplateResolver | |
forceReload | boolean |
Returns:
Array<AbstractEntry>