You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vlad Bailescu (JIRA)" <ji...@apache.org> on 2016/02/23 23:15:18 UTC
[jira] [Created] (SLING-5554) Sightly: allow calling data-sly-use
with a resource path
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+s8zW5AXQ@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)