
data-sly-resource includes the result of rendering the resource at the given path. Sling resolution and rendering process the resource, and the result is included in place.
<article data-sly-resource="path/to/myresource"></article>
There are several ways to refer to the resource path:
"${ @ path='path/to/myresource'}"
"${'myresource' @ prependPath='my/path'}"
"${'my/path' @ appendPath='myresource'}"
Selectors can be changed with the selectors, addSelectors and removeSelectors options. To pass values to the included script, see request attributes.