liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Increment/Decrement Tags With Drop

Open microalps opened this issue 1 year ago • 1 comments

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)

microalps avatar Dec 24 '24 04:12 microalps