You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2015/03/31 17:04:53 UTC

[jira] [Resolved] (SLING-4174) introduction of data-sly-repeat

     [ https://issues.apache.org/jira/browse/SLING-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radu Cotescu resolved SLING-4174.
---------------------------------
       Resolution: Duplicate
    Fix Version/s: Scripting Sightly Engine 1.0.0

> 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
>             Fix For: Scripting Sightly Engine 1.0.0
>
>
> 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}
> Moved spec-discussion to : https://github.com/Adobe-Marketing-Cloud/sightly-spec/issues/4



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