mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
perf: make the most of streamed rendering
This commit is contained in:
@@ -18,8 +18,8 @@ export class Context {
|
||||
this.globals = opts.globals
|
||||
this.environments = env
|
||||
}
|
||||
public getRegister (key: string, defaultValue = {}) {
|
||||
return (this.registers[key] = this.registers[key] || defaultValue)
|
||||
public getRegister (key: string) {
|
||||
return (this.registers[key] = this.registers[key] || {})
|
||||
}
|
||||
public setRegister (key: string, value: any) {
|
||||
return (this.registers[key] = value)
|
||||
|
||||
Reference in New Issue
Block a user