mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Migrated from liquid-for-designers v18
@@ -145,7 +145,7 @@ hit 2 or 3
|
||||
|
||||
<pre>
|
||||
{% case template %}
|
||||
|
||||
|
||||
{% when 'label' %}
|
||||
// {{ label.title }}
|
||||
{% when 'product' %}
|
||||
@@ -210,7 +210,7 @@ During every @for@ loop, the following helper variables are available for extra
|
||||
<pre>
|
||||
forloop.length # => length of the entire for loop
|
||||
forloop.index # => index of the current iteration
|
||||
forloop.index0 # => index of the current iteration (zero based)
|
||||
forloop.index0 # => index of the current iteration (zero based)
|
||||
forloop.rindex # => how many items are still left?
|
||||
forloop.rindex0 # => how many items are still left? (zero based)
|
||||
forloop.first # => is this the first iteration?
|
||||
|
||||
Reference in New Issue
Block a user