Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
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.
path comes handy when you want to render resources with selectors path="${somepath}.withselector.html"
View solution in original post
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
Likes
Replies