feat: Support for the "render" tag #163

This commit is contained in:
Jun Yang
2019-10-27 00:06:16 +08:00
parent b82fa9ed2b
commit d5e7b047bb
7 changed files with 269 additions and 10 deletions
+2 -2
View File
@@ -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)