AEM Sightly/HTL | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
February 3, 2023

AEM Sightly/HTL | AEM Community Blog Seeding

  • February 3, 2023
  • 0 replies
  • 432 views

BlogImage.jpg

AEM Sightly/HTL by Imran Khan

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

AEM Sightly/HTL

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.