mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
feat: Support for the "render" tag #163
This commit is contained in:
@@ -11,10 +11,10 @@ export class Context {
|
||||
public environments: Scope
|
||||
public sync: boolean
|
||||
public opts: NormalizedFullOptions
|
||||
public constructor (ctx: object = {}, opts?: NormalizedFullOptions, sync = false) {
|
||||
public constructor (env: object = {}, opts?: NormalizedFullOptions, sync = false) {
|
||||
this.sync = sync
|
||||
this.opts = applyDefault(opts)
|
||||
this.environments = ctx
|
||||
this.environments = env
|
||||
}
|
||||
public getRegister (key: string, defaultValue = {}) {
|
||||
return (this.registers[key] = this.registers[key] || defaultValue)
|
||||
|
||||
Reference in New Issue
Block a user