Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In Sling, scripts can include other scripts at runtime through several script engine specific implementations (e.g. data-sly-include, sling:call, etc.). All of the implementations rely on the org.apache.sling.api.servlets.ServletResolver#resolveServlet(org.apache.sling.api.resource.Resource, java.lang.String) method to resolve the script.
With bundled scripts, the scripts are not any more part of the resource tree. However, the Sling Scripting Bundle Tracker could use the path-based servlet registration mechanism to place the servlet wrapping the script / precompiled unit at the same path as the caller expected the script to be present in the resource tree.
Attachments
Issue Links
- is a child of
-
SLING-9207 Unify the support for bundled scripts
- Closed
- is blocked by
-
SLING-9264 Add the original script extension to the provided capabilities
- Closed