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

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

Open
ruemic opened this issue Jun 7, 2015 · 1 comment
Open

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

ruemic opened this issue Jun 7, 2015 · 1 comment

Comments

@ruemic
Copy link

ruemic commented Jun 7, 2015

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?

@mattmccray
Copy link
Owner

Yes, I'd like to bring liquid.js back up to parity with ruby Liquid -- Probably with version 2. (see #42)

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