Skip to content

Increment/Decrement Tags With Drop #1880

Open
@microalps

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions