Vlad Bailescu created SLING-5813:
------------------------------------
Summary: 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)