mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 00:55:13 -07:00
Fix Register Tags example
This commit is contained in:
@@ -228,7 +228,9 @@ engine.registerTag('upper', {
|
|||||||
},
|
},
|
||||||
render: function(scope, hash) {
|
render: function(scope, hash) {
|
||||||
var str = Liquid.evalValue(this.str, scope); // 'alice'
|
var str = Liquid.evalValue(this.str, scope); // 'alice'
|
||||||
return Promise.resolve(str.toUpperCase()); // 'Alice'
|
return str.then(function(name) {
|
||||||
|
return name.toUpperCase() // 'Alice'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user