[
https://issues.apache.org/jira/browse/SLING-5342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu resolved SLING-5342.
---------------------------------
Resolution: Implemented
Assignee: Radu Cotescu
> 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
> Assignee: Radu Cotescu
> Priority: Minor
> Labels: Sightly
>
> 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)