[ 
https://issues.apache.org/jira/browse/SLING-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214662#comment-14214662
 ] 

Radu Cotescu commented on SLING-4174:
-------------------------------------

We could leave it open until we see what happens with 
https://github.com/Adobe-Marketing-Cloud/sightly-spec/issues/4. If the spec 
changes then we can use this issue to implement the new block element.

> introduction of data-sly-repeat
> -------------------------------
>
>                 Key: SLING-4174
>                 URL: https://issues.apache.org/jira/browse/SLING-4174
>             Project: Sling
>          Issue Type: New Feature
>          Components: Scripting
>            Reporter: Feike Visser
>
> I want to propose a new operation in Sightly: data-sly-repeat.
> This to overcome situations where you want to loop through items, but where 
> you don't have a container element in your markup.
> This is possible with data-sly-list and data-sly-unwrap, but that forces you 
> to add markup.
> {code}
> <div data-sly-list="${resource.listChildren}" data-sly-unwrap>
>    <div>${child.path}</div>
> </div>
> {code}
> With data-sly-repeat you would be able to write it like this:
> {code}
> <div data-sly-repeat="${resource.listChildren}">${child.path}</div>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to