Created
September 11, 2014 11:37
-
-
Save moreguppy/62d09acabe7249cfa38d to your computer and use it in GitHub Desktop.
Cycle method for Middleman & HAML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (1..36).each do |i| | |
- cycle = i % 2 == 0 ? 'even' : 'odd' | |
.foo{:class => cycle} #{i} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment