Skip to content

Instantly share code, notes, and snippets.

@beausmith
Created October 23, 2013 22:40

Revisions

  1. beausmith created this gist Oct 23, 2013.
    11 changes: 11 additions & 0 deletions Slim for loop
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    - 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