Skip to content

Commit 662da77

Browse files
karollewandowskiraducotescu
authored andcommitted
#76: List and repeat blocks scope description issue
1 parent 4781823 commit 662da77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPECIFICATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ Note that the identifier contains the value of the condition as it was (not cast
11041104
* **Content of element:** repeated as many times as there are items in the attribute value.
11051105
* **Attribute value:** optional; the item to iterate over; if omitted the content will not be shown.
11061106
* **Attribute identifier:** optional; customised identifier name to access the item within the list element; if an identifier is not provided, the block element will implicitly make available an `item` identifier to access the element of the current iteration.
1107-
* **Scope:** The identifier set by the `data-sly-list` block element is available only in the element's scope. The identifier will override other identifiers with the same name available in the scope, however their values will be restored once outside of the element's scope.
1107+
* **Scope:** The identifier set by the `data-sly-list` block element is available only in the element's children scope. The identifier will override other identifiers with the same name available in the scope, however their values will be restored once outside of the element's scope.
11081108

11091109
Repeats the content of the element for each item of the provided object (which can be an array, or any iterable object).
11101110

@@ -1160,7 +1160,7 @@ value, allowing to control the iteration through the following options:
11601160
* **Content of element:** repeated as many times as there are items in the attribute value.
11611161
* **Attribute value:** optional; the item to iterate over; if omitted the containing element and its content will not be shown.
11621162
* **Attribute identifier:** optional; customised identifier name to access the item within the repeat element; if an identifier is not provided, the block element will implicitly make available an `item` identifier to access the element of the current iteration.
1163-
* **Scope:** The identifier set by the `data-sly-list` block element is available only in the element's scope. The identifier will override other identifiers with the same name available in the scope, however their values will be restored once outside of the element's scope.
1163+
* **Scope:** The identifier set by the `data-sly-repeat` block element is available only in the element's scope. The identifier will override other identifiers with the same name available in the scope, however their values will be restored once outside of the element's scope.
11641164

11651165
Repeats the content of the element for each item of the provided object (which can be an array, or any iterable object).
11661166

0 commit comments

Comments
 (0)