SLING-7685 - data-sly-resource throws RecursionTooDeepException when used with dynami...
authorRadu Cotescu <radu@apache.org>
Mon, 18 Jun 2018 15:52:54 +0000 (17:52 +0200)
committerRadu Cotescu <radu@apache.org>
Mon, 18 Jun 2018 15:52:54 +0000 (17:52 +0200)
* skip resource include if the include points to the same resource / selectors / resource type combination
as the request's current resource

src/main/resources/SLING-INF/apps/sightly/scripts/resource/resource.html

index 23f5a82..a397e6f 100644 (file)
@@ -32,5 +32,6 @@
 <sly data-sly-resource="${'/sightly/resource.with.dots.in.path' @ resourceType='sightly/scripts/renderer'}"/>
 <sly data-sly-resource="${'/sightly/nonexistingresource' @ resourceType='sightly/scripts/renderer'}"/>
 <sly data-sly-resource="${@ resourceType='sightly/scripts/renderer'}"/>
+<div id="wrapper-no-recursion" data-sly-resource="${'.'}"></div>
 </body>
 </html>