feat: export toPromise and toValue, see #158

This commit is contained in:
harttle
2020-08-05 00:46:01 +08:00
parent 0dbb7792d7
commit 2e5ab98bfc
5 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export class Hash {
* render (ctx: Context) {
const hash = {}
for (const key of Object.keys(this.hash)) {
hash[key] = evalToken(this.hash[key], ctx)
hash[key] = yield evalToken(this.hash[key], ctx)
}
return hash
}