Abstract
Sightly which is also called as HTL(HTML Template Language) is a server-site template system for HTML.
HTL gets convert in to HTML code at run time.
Like JSP, HTL also provides us implicit objects such as resource, component, properties, style, request, response, log, sling, etc.
As part of this blog, we are going to use below content hierarchy:
Below are some of the HTL tags are available:
data-sly-test
data-sly-test tag use to compare value. Below code snippet will print resource name in case its value is practice.
Component Title: ${resource.name}
below is an example of data-sly-test having && operator to check multiple conditions:
Component Name: ${resource.name}
Page Path: ${currentPage.path}
Read Full Blog
Q&A
Please use this thread to ask the related questions.
Kautuk Sahni