Roland Schaer created SLING-5342:
------------------------------------
Summary: Sightly: Add support for passing resource as argument
Key: SLING-5342
URL: https://issues.apache.org/jira/browse/SLING-5342
Project: Sling
Issue Type: Improvement
Components: Scripting
Reporter: Roland Schaer
Priority: Minor
Currently passing {{resource}} as argument via {{data-sly-use}} attribute to a
Sling Model does not seem to be supported. While passing an argument with a
different name than {{resource}} works, the current implementation does not
allow to override the request resource bound to that variable name.
{code:title=Example}
data-sly-use="${'my.package.Model' @
resource=request.requestPathInfo.suffixResource}"
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)