Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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