You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Roland Schaer (JIRA)" <ji...@apache.org> on 2015/11/30 16:36:10 UTC

[jira] [Created] (SLING-5342) Sightly: Add support for passing resource as argument

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)