Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting JSP-Taglib 2.0.6
-
None
Description
SLING-585 brings new Script/Servlet resolution API to find an explicitly named script according to a resource type hiearchy.
This functionality should be reflected in a new JSP tag, e.g. along the lines:
<sling:call script=... resource=... resourceType=... noResourceType=.... />
where:
script is a path to a script
resource is a resource whose resource type hierarchy is used to resolve the script
resourceType is a resource type hierarchy to resolve the script
noResourceType prevents using resource type hiearchy if set to true (default: false)
If neither resource nor resource type are declared, the script is resolved according to the type hierarchy of the request's resource.