-
-
Save IvikGH/852ac754ba45d4c9f121 to your computer and use it in GitHub Desktop.
Iterating through an array using a for loop in slim lang template
This file contains 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
- for i in (1..5) | |
div #{i} | |
- for i in [0,4,8,12,16,20,24] do | |
div #{i} #{i + -12} | |
- if (i == 0) | |
div 0 | |
- elsif (i < 12) | |
div lt 12 | |
- else | |
div foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment