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

ASF GitHub Bot commented on SLING-5813:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/sling/pull/151


> Allow a Resource to be used as a Sightly Use-Object with data-sly-use
> ---------------------------------------------------------------------
>
>                 Key: SLING-5813
>                 URL: https://issues.apache.org/jira/browse/SLING-5813
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Scripting Sightly Engine 1.0.18
>            Reporter: Vlad Bailescu
>            Priority: Minor
>             Fix For: Scripting Sightly Engine 1.0.20
>
>
> At the moment, if we want to use a {{Resource}} (to invoke it's properties 
> for example) we need a helper Use-Object to provide it. It would be more 
> straightforward if we could just load it by path and bind it to a variable 
> via {{data-sly-use}}:
> {code}
> <sly data-sly-use.myRes="${'some/path'}">${myRes.title}</sly>
> {code}



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

Reply via email to