You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python liquid will successfully parse a chained identifier containing a bracketed index or identifier, followed immediately by another identifier, with no separating dot.
{{ products[0]title }}
Ruby Liquid will raise a Liquid::SyntaxError when parsing the above template, instead expecting {{ products[0].title }}. Python Liquid will accept either without error.
Similarly, Python Liquid will handle {{ products.[0].title }}, while Ruby Liquid will again raise a Liquid::SyntaxError.
The text was updated successfully, but these errors were encountered:
Related, Python Liquid will parse {{ products.0.title }} and {{ products[0].title }}. Ruby Liquid only accepts the later, raising a Liquid::SyntaxError for the former, whether in strict mode or not.
jg-rp
added
future
Fixes to be included in the 'future' environment
and removed
version 2
Fix or include in version 2 of Python Liquid
labels
Dec 31, 2022
Python liquid will successfully parse a chained identifier containing a bracketed index or identifier, followed immediately by another identifier, with no separating dot.
Ruby Liquid will raise a
Liquid::SyntaxError
when parsing the above template, instead expecting{{ products[0].title }}
. Python Liquid will accept either without error.Similarly, Python Liquid will handle
{{ products.[0].title }}
, while Ruby Liquid will again raise aLiquid::SyntaxError
.The text was updated successfully, but these errors were encountered: