Skip to content

fix: stop array includes after interrupts - #2158

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/liquid-include-interrupt-2141
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/liquid-include-interrupt-2141

Conversation

@efegokdemir

Copy link
Copy Markdown

Fixes #2141.

When an array-valued include executes break or continue, stop rendering that partial across the remaining array entries. This prevents repeated interrupts from consuming subsequent template output.

Tests: bundle exec rake passed on Ruby 4.0.5. The repository pins Ruby 4.0.9, which was unavailable in the environment. RuboCop passed across 160 files.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

break/continue in a partial included with or for an array stops the rest of the template

1 participant