Liquid v0.9.1 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
Link to this function
parse(tag, template) View Source
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