Vlad Bailescu created SLING-5554: ------------------------------------ Summary: 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 Priority: Minor
Following the [discussion on dev@sling.apache.org|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)