class Liquid::Cycle
- Liquid::Cycle
- Liquid::Tag
- Reference
- Object
Overview
Cycle is usually used within a loop to alternate between values, like colors or DOM classes.
{% for item in items %}
{{ item }}
{% end %}
Item one
Item two
Item three
Item four
Item five
Defined in:
liquid/tags/cycle.crConstant Summary
-
NamedSyntax =
/^(#{QuotedFragment})\s*\:\s*(.*)/
-
SimpleSyntax =
/^#{QuotedFragment}+/