mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
update README
This commit is contained in:
@@ -134,7 +134,7 @@ 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 str.toUpperCase(); // 'Alice'
|
return Promise.resolve(str.toUpperCase()); // 'Alice'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@@ -223,18 +223,6 @@ Documentation: <https://shopify.github.io/liquid/basics/operators/>
|
|||||||
|
|
||||||
`==`, `!=`, `>`, `<`, `>=`, `<=`, `or`, `and`, `contains`.
|
`==`, `!=`, `>`, `<`, `>=`, `<=`, `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/
|
[nunjucks]: http://mozilla.github.io/nunjucks/
|
||||||
[liquid-node]: https://github.com/sirlantis/liquid-node
|
[liquid-node]: https://github.com/sirlantis/liquid-node
|
||||||
[shopify-liquid]: https://shopify.github.io/liquid/
|
[shopify-liquid]: https://shopify.github.io/liquid/
|
||||||
|
|||||||
Reference in New Issue
Block a user