I have used <sling include path="" /> but what is <sling:include resource="" />?
Can someone help me know the diffrence between them?
Solved! Go to Solution.
Views
Replies
Total Likes
path comes handy when you want to render resources with selectors path="${somepath}.withselector.html"
Views
Replies
Total Likes
I believe you can use resource= instead of path= if you've already got a reference to a resource using getResource, e.g.
sling:getResource(resourceResolver,'/content/page')
See http://sling.apache.org/documentation/bundles/sling-scripting-jsp-taglib.html#include
Views
Replies
Total Likes
path comes handy when you want to render resources with selectors path="${somepath}.withselector.html"
Views
Replies
Total Likes