You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Henry Kuijpers (Jira)" <ji...@apache.org> on 2020/01/16 12:42:00 UTC

[jira] [Created] (SLING-9005) Support ResourceResolver.map() through Sightly

Henry Kuijpers created SLING-9005:
-------------------------------------

             Summary: Support ResourceResolver.map() through Sightly
                 Key: SLING-9005
                 URL: https://issues.apache.org/jira/browse/SLING-9005
             Project: Sling
          Issue Type: New Feature
          Components: Scripting
    Affects Versions: Scripting HTL Engine 1.3.2-1.4.0
            Reporter: Henry Kuijpers


It would be very convenient if there is a way to execute ResourceResolver.map(), without having to write Sling Models or other backend logic for this.

I.e. Sling could provide a way to do so, for example by introducing a helper object, or a provider:
{code:java}
${resourceResolverHelper.map @ path = mySlingModel.path}{code}
{code:java}
 ${mySlingModel.path @ map}
or 
${mySlingModel.path @ mapped}
or 
${mySlingModel.path @ resourceResolverMap} 
{code}
Can we have a discussion regarding this, to work out an implementation guideline? I could work on creating a PR for this, when we decide the way forward.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)