Liquid v0.8.0 Liquid.Cycle View Source

Implementation of cycle tag. Can be named or anonymous, rotates through pre-set values Cycle is usually used within a loop to alternate between values, like colors or DOM classes.

Link to this section Summary

Functions

Sets up the cycle name and variables to cycle through

Returns a corresponding cycle value and increments the cycle counter

Link to this section Functions

Sets up the cycle name and variables to cycle through

Link to this function render(output, tag, context) View Source

Returns a corresponding cycle value and increments the cycle counter