PartialsStore
@quik/templates / PartialsStore
Variable: PartialsStore
constPartialsStore:object
Defined in: templates/src/stores/partials.ts:48
API for loading and registering partial templates.
Type Declaration
clear
clear: () =>
void=clearPartials
Clear all loaded partials from memory.
Returns
void
load
load: (
module, ...folders) =>Promise<void> =loadPartials
Load partial templates from the given folders.
Parameters
module
string
Name of the module these partials belong to.
folders
...string[]
One or more folders containing Handlebars files.
Returns
Promise<void>
register
register: (
handlebarsInstance) =>void=registerPartials
Register the loaded partials on a Handlebars instance.
Parameters
handlebarsInstance
typeof Handlebars
Instance to register partials with.
Returns
void