liquid.js icon indicating copy to clipboard operation
liquid.js copied to clipboard

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

Open ruemic opened this issue 10 years ago • 1 comments

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?

ruemic avatar Jun 07 '15 20:06 ruemic

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

mattmccray avatar Sep 12 '15 18:09 mattmccray