mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 09:05:14 -07:00
Update register-filters-tags.md
Improve documentation
This commit is contained in:
@@ -10,7 +10,7 @@ import { Value, TagToken, Context, Emitter, TopLevelToken } from 'liquidjs'
|
|||||||
|
|
||||||
engine.registerTag('upper', {
|
engine.registerTag('upper', {
|
||||||
parse: function(tagToken: TagToken, remainTokens: TopLevelToken[]) {
|
parse: function(tagToken: TagToken, remainTokens: TopLevelToken[]) {
|
||||||
this.value = new Value(token.args, liquid)
|
this.value = new Value(tagToken.args, engine)
|
||||||
},
|
},
|
||||||
render: function*(ctx: Context) {
|
render: function*(ctx: Context) {
|
||||||
const str = yield this.value.value(ctx); // 'alice'
|
const str = yield this.value.value(ctx); // 'alice'
|
||||||
|
|||||||
Reference in New Issue
Block a user