Type Alias: TemplateContext
TemplateContext:
object
Optional meta data and utilities for managing liquid templates.
Type declaration
loaderContext?
optional
loaderContext:ContextScope
Additional, arbitrary data that a loader can use to scope or otherwise narrow its search space.
matter?
optional
matter:ContextScope
Extra global render context variables. Usually added by a template loader.
name?
optional
name:string
A name or identifier for the template. This name will be used in error messages.
upToDate()?
optional
upToDate: () =>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()?
optional
upToDateSync: () =>boolean
A synchronous version of upToDate
.
Returns
boolean