harttle / liquidjs

A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.
https://liquidjs.com
MIT License
1.5k stars 237 forks source link

Feature request: allow `lenientIf` for multiple operands #682

Closed amedve closed 4 months ago

amedve commented 4 months ago

Currently, lenientIf config option only applies to statements with a single operand. This is a different behavior from the Shopify (Ruby) liquid.

Current behavior (strictVariables and lenientIf are both set to true):

Expected: