Constructors
constructor
- new Context(env?, opts?, renderOptions?, __namedParameters?): Context
Properties
ownPropertyOnly
ownPropertyOnly: boolean
strictVariables
strictVariables: boolean
Methods
_getFromScope
- _getFromScope(scope, paths, strictVariables?): IterableIterator<unknown>
Parameters
- scope: unknown
- paths: string | (Drop | PropertyKey)[]
- strictVariables: boolean = ...
get
- get(paths): unknown
Returns unknown
getRegister
- getRegister(key): any
Returns any
getSync
- getSync(paths): unknown
Returns unknown
push
- push(ctx): number
Returns number
restoreRegister
- restoreRegister(keyValues): void
Parameters
- keyValues: [string, any][]
Returns void
saveRegister
- saveRegister(...keys): [string, any][]
Returns [string, any][]
setRegister
- setRegister(key, value): any
Returns any
user passed in scope
{% increment %}
,{% decrement %}
changes this scope, whereas{% capture %}
,{% assign %}
only hide this scope