Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs

  • Loading branch information...
commit 31f46e42e81c4ce61cbd1fb5769da97d1e6b3f89 1 parent 4c4c614
TJ Holowaychuk tj authored
Showing with 26 additions and 2 deletions.
  1. +26 −2 docs/iteration.md
28 docs/iteration.md
View
@@ -7,5 +7,29 @@
For example:
- each n in 1 2 3
- foo n
+ body
+ each num in 1 2 3
+ foo num
+
+yields:
+
+ body {
+ foo: 1;
+ foo: 2;
+ foo: 3;
+ }
+
+The example below shows how to use the `<key-name>`:
+
+ body
+ fonts = Impact Arial sans-serif
+ each font, i in fonts
+ foo i font
+
+yielding:
+
+ body {
+ foo: 0 Impact;
+ foo: 1 Arial;
+ foo: 2 sans-serif;
+ }
Please sign in to comment.
Something went wrong with that request. Please try again.