[ https://issues.apache.org/jira/browse/SLING-5813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu resolved SLING-5813. --------------------------------- Resolution: Fixed Assignee: Radu Cotescu Fixed in [r1750818|https://svn.apache.org/r1750818]. > 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 > Assignee: Radu Cotescu > 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)