Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

AEM Sightly/HTL | AEM Community Blog Seeding

Avatar

Administrator

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.



Kautuk Sahni
0 Replies