Orphaned {% break %}
and {% continue %}
#76
Labels
incompatibility
Behavioural differences between Python and Ruby Liquid
wontfix
This will not be worked on
Recent commits to the reference implementation have highlighted an incompatibility in the way we handle
{% break %}
and{% continue %}
tags that appear outside of a{% for %}
block.Consider this template:
Ruby Liquid output in both strict and lax modes:
Python Liquid raises a
LiquidSyntaxError
in strict mode and jumps over the entire outer{% if %}
block in lax mode.Not for the first time, I'm torn between strict compatibility and what I consider to be more natural, expected and consistent behaviour, even for non-dev template authors.
The text was updated successfully, but these errors were encountered: