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/02/20 21:53:11 UTC

[jira] [Created] (SLING-4449) Allow iterating once over String / Number objects

Radu Cotescu created SLING-4449:
-----------------------------------

             Summary: Allow iterating once over String / Number objects
                 Key: SLING-4449
                 URL: https://issues.apache.org/jira/browse/SLING-4449
             Project: Sling
          Issue Type: Bug
          Components: Scripting
    Affects Versions: Scripting Sightly Engine 1.0.0
            Reporter: Radu Cotescu
            Assignee: Radu Cotescu


There are use cases where an iteration can be performed on a property that's not necessary storing a multiple value. For these use cases {{data-sly-list}} and {{data-sly-repeat}} should be able to iterate once on this value, essentially transforming the iterated object into a {{Collection}} with one element.



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