update README

This commit is contained in:
harttle
2016-09-26 21:54:39 +08:00
parent 83a0a0547e
commit 110bbc3c59
+1 -13
View File
@@ -134,7 +134,7 @@ engine.registerTag('upper', {
},
render: function(scope, hash) {
var str = Liquid.evalValue(this.str, scope); // 'alice'
return str.toUpperCase(); // 'Alice'
return Promise.resolve(str.toUpperCase()); // 'Alice'
}
});
```
@@ -223,18 +223,6 @@ Documentation: <https://shopify.github.io/liquid/basics/operators/>
`==`, `!=`, `>`, `<`, `>=`, `<=`, `or`, `and`, `contains`.
## Async Support
harttle/shopify-liquid do NOT support async rendering, this is by design.
The primary principle of harttle/shopify-liquid is EASY TO EXTEND.
Async rendering introduces extra complexity in both implementation and extension.
For template-driven projects, checkout these Liquid-like engines:
* liquid-node: <https://github.com/sirlantis/liquid-node>
* nunjucks: <http://mozilla.github.io/nunjucks/>
[nunjucks]: http://mozilla.github.io/nunjucks/
[liquid-node]: https://github.com/sirlantis/liquid-node
[shopify-liquid]: https://shopify.github.io/liquid/