HTL sly-resource
Helps to include result of a resource from a path specified. The sling resolution and rendering process will process the indicated resource from path and result will be included.
<file data-sly-resource="path/to/myresource"></file>
We can mention various methods for referring resource path. Shown below.
- "${ @ path='path/to/myresource'}"
- "${'myresource' @ prependPath='my/path'}"
- "${'my/path' @ appendPath='myresource'}"
We have also options to modify path using selectors as @ selectors, @ addSelectors, @ removeSelectors
Go to HTL Tutorial Home page
No comments:
Post a Comment