Top "Sightly" questions

Sightly (now known as HTL) - the Apache Sling XSS-aware template language

how do I get key/value in sightly from java use class hashmap

I have a basic java use class object that extends WCMUSE and a simple hashmap method - in the sightly …

aem sightly
How to include AEM parsys in page component

I have the following line, in the page component file /apps/my-app/components/pages/homepage/body.html <div data-sly-resource="${ @…

aem sightly
How to concatenate strings in Sightly/HTL?

I have the following code: <sly data-sly-use.link="${'core.impl.view.tools.LinkUtils' @ path=properties.targetURL}"></sly&…

sightly htl
Template Editor AEM not working as expected

We are using template editor in AEM 6.2 to create templates , and we have followed below steps to create a template- 1.…

html aem sightly
Sightly: check for empty lists

Using data-sly-list I can iterate over a list object in Sightly, but how can I check if a list is …

adobe aem sightly
Sightly Component Cannot Find Bundled WCMUse(Pojo)

I've been following the documentation here Apparently, in order to have my "use" class be visible to my Sightly component, …

java osgi aem osgi-bundle sightly
remove decoration tags aem sightly

How can I remove the decoration tags only in preview/publish mode in AEM sightly? I have seen the question …

aem sightly
Are there requestScope variables in Sightly?

In JSTL you can set variables in on component that are available to all other components after it in the …

aem sightly
How to say if something equals to a string in Sightly?

In Sightly, I want to have if statement as in below if x == "Australia" then execute the html below I …

sightly
How to add conditional elements in data-sly-list?

I currently have a data-sly-list that populates a JS array like this: var infoWindowContent = [ <div data-sly-use.ed="Foo" data-sly-list="${…

aem sightly