Skip to content

Instantly share code, notes, and snippets.

@beausmith
Created October 23, 2013 22:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save beausmith/7128130 to your computer and use it in GitHub Desktop.
Save beausmith/7128130 to your computer and use it in GitHub Desktop.
Iterating through an array using a for loop in slim lang template
- 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