-
-
Save lokeshjain2008/da7b8f3d4621678c261c to your computer and use it in GitHub Desktop.
Iterating through an array using a for loop in slim lang template
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
- 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