Type Alias: TemplateContext
TemplateContext:
object
Optional meta data and utilities for managing liquid templates.
Type declaration
loaderContext?
optionalloaderContext:ContextScope
Additional, arbitrary data that a loader can use to scope or otherwise narrow its search space.
matter?
optionalmatter:ContextScope
Extra global render context variables. Usually added by a template loader.
name?
optionalname:string
A name or identifier for the template. This name will be used in error messages.
upToDate()?
optionalupToDate: () =>Promise<boolean>
A function that will return true if this template is up to
date, or false if it needs to be loaded again.
Returns
Promise<boolean>
upToDateSync()?
optionalupToDateSync: () =>boolean
A synchronous version of upToDate.
Returns
boolean