mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-29 15:15:23 -07:00
Revert change to line 17
The original is fine, emitter is not needed.
This commit is contained in:
@@ -12,9 +12,9 @@ engine.registerTag('upper', {
|
|||||||
parse: function(tagToken: TagToken, remainTokens: TopLevelToken[]) {
|
parse: function(tagToken: TagToken, remainTokens: TopLevelToken[]) {
|
||||||
this.str = tagToken.args; // name
|
this.str = tagToken.args; // name
|
||||||
},
|
},
|
||||||
render: async function(ctx: Context, emitter: Emitter) {
|
render: async function(ctx: Context) {
|
||||||
var str = await this.liquid.evalValue(this.str, ctx); // 'alice'
|
var str = await this.liquid.evalValue(this.str, ctx); // 'alice'
|
||||||
emitter.write(`<span>${str.toUpperCase()}</span>`) // 'Alice'
|
return str.toUpperCase() // 'ALICE'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user