Skip to content

Commit

Permalink
Explicitly allow iterations over strings & numbers for list and repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
raducotescu committed Feb 25, 2015
1 parent 4d80cec commit af32acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ Note that the identifier contains the value of the condition as it was (not cast
#### 2.2.6. List
**`data-sly-list`:**
* Iterates over the content of each item in the attribute value.
* **Element:** shown only if the number of items from the attribute value is greater than 0.
* **Element:** shown only if the number of items from the attribute value is greater than 0, or if the attribute value is a string or number.
* **Content of element:** repeated as many times as there are items in the attribute value.
* **Attribute value:** optional; the item to iterate over; if omitted the content will not be shown.
* **Attribute identifier:** optional; customised identifier name to access the item within the list element.
Expand Down Expand Up @@ -942,7 +942,7 @@ When iterating over `Map` objects, the item variable contains the key of each ma
#### 2.2.7. Repeat
**`data-sly-repeat`:**
* Iterates over the content of each item in the attribute value and displays the containing element as many times as items in the attribute value.
* **Element:** shown only if the number of items from the attribute value is greater than 0.
* **Element:** shown only if the number of items from the attribute value is greater than 0, or if the attribute value is a string or number.
* **Content of element:** repeated as many times as there are items in the attribute value.
* **Attribute value:** optional; the item to iterate over; if omitted the containing element and its content will not be shown.
* **Attribute identifier:** optional; customised identifier name to access the item within the repeat element.
Expand Down

0 comments on commit af32acb

Please sign in to comment.