[
https://issues.apache.org/jira/browse/SLING-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu resolved SLING-5554.
---------------------------------
Resolution: Duplicate
Assignee: Radu Cotescu
> Sightly: allow calling data-sly-use with a resource path
> --------------------------------------------------------
>
> Key: SLING-5554
> URL: https://issues.apache.org/jira/browse/SLING-5554
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.0
> Reporter: Vlad Bailescu
> Assignee: Radu Cotescu
> Priority: Minor
>
> Following the [discussion on
> [email protected]|http://mail-archives.apache.org/mod_mbox/sling-dev/201601.mbox/%3CCANG90TY3xo+kHC=rb30enap7dqgzeymrr4kg1tvzu+s8zw5...@mail.gmail.com%3E]
> I believe it would be nice if we can bind a resource (by path) to a variable
> using {{data-sly-use}}:
> {code}
> data-sly-use.myResource="${ '/content/myResource' }"
> {code}
> This will eliminate the need to create an use object for simple cases when we
> are reading properties from other resources.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)