mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
Fix Register Tags example
This commit is contained in:
@@ -228,7 +228,9 @@ engine.registerTag('upper', {
|
||||
},
|
||||
render: function(scope, hash) {
|
||||
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