Skip to content

missing support for 'break' and 'increment/decrement' #43

@ruemic

Description

@ruemic

Hey, first off thanks for this super useful browser compatible port of Liquid!

I noticed these two features are missing:

Increment/Decrement Tag:

{% increment variable %}
{% decrement variable %}

See usage here: https://docs.shopify.com/themes/liquid-documentation/tags/variable-tags#increment

Break Tag: Exits a For Loop
https://github.com/Shopify/liquid/wiki/Liquid-for-Designers#tags
Example:

{% for product in products %}    
  {% if product.category contains 'beverages' %}
  {{ product.title }}  
  {% break %}
  {% endif %}
{% endfor %}

Has adding support for these been considered?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions