HTL sly-attribute



HTL sly-attribute

 Helps to add attributes to the host element.

 For eg: 
<div title="Page Title" data-sly-attribute.title="${properties.jcr:title}"></div>
 Prints the current page title, still helpful for searching in html source using term 'Page Title'

Go to HTL Tutorial Home page

 

No comments:

Post a Comment