Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Scripting Sightly Engine 1.0.18
-
None
Description
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:
<sly data-sly-use.myRes="${'some/path'}">${myRes.title}</sly>
Attachments
Issue Links
- is duplicated by
-
SLING-5554 Sightly: allow calling data-sly-use with a resource path
- Closed
- is related to
-
SLING-6637 [htl] data-sly-use should not raise an exception when resource doesn't exist
- Closed
- links to