Liquid v0.6.0 Liquid.Cycle

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.

Summary

Functions

Sets up the cycle name and variables to cycle through

Returns a corresponding cycle value and increments the cycle counter

Functions

parse(tag, template)

Sets up the cycle name and variables to cycle through

render(output, tag, context)

Returns a corresponding cycle value and increments the cycle counter