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

Bertrand Delacretaz commented on SLING-8615:
--------------------------------------------

I found examples of iterating over child nodes in the old {{mail-archive}} 
sample ESP code:

* 
https://github.com/apache/sling-samples/blob/master/mail-archive/stats/src/main/resources/initial-content/apps/mailserver/stats/stats.esp
 - uses the Resource API
* 
https://github.com/apache/sling-samples/blob/master/mail-archive/ui/src/main/resources/initial-content/apps/mailarchiveserver/archive/html.esp
 - uses sling.include

and there's a few more ESP examples in the 
https://github.com/apache/sling-org-apache-sling-launchpad-integration-tests 
module, using {{adaptTo}} and other things.


> Move to a resource-centric setup
> --------------------------------
>
>                 Key: SLING-8615
>                 URL: https://issues.apache.org/jira/browse/SLING-8615
>             Project: Sling
>          Issue Type: Improvement
>          Components: Starter
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: Starter Content 1.0.6
>
>
> As proposed on 
> https://lists.apache.org/thread.html/847538afdb43d82c7c4a2d59464897168ea1302a69c5b0863eddc360@%3Cdev.sling.apache.org%3E
>  , we should use the Sling way and base the starter-content bundle on scripts 
> and resources.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to