Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment/Decrement Tags With Drop #1880

Open
microalps opened this issue Dec 24, 2024 · 1 comment
Open

Increment/Decrement Tags With Drop #1880

microalps opened this issue Dec 24, 2024 · 1 comment

Comments

@microalps
Copy link

microalps commented Dec 24, 2024

Issue

Liquid allows render to be called with either a Hash, Context, or Drop. It appears that in the latter case, increment and decrement filters fail with Liquid error: internal because a drop is not writable to store the incrementing value of the counter.

Is this the expected behavior?

Sample Code:

Liquid::Template.parse('{%increment port %} {{ port }}').render(Liquid::Drop.new)
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

No branches or pull requests

2 participants
@microalps and others