How can we test sightly code at runtime without a deployment? | Community
Skip to main content
Level 2
August 5, 2025
Solved

How can we test sightly code at runtime without a deployment?

  • August 5, 2025
  • 1 reply
  • 405 views

Hi Everyone,

I have the following code in an AEM component:

<sly data-sly-test="${properties.showPinterestSave == 'true'}">
It works fine on most pages, but in our published environments, it's not behaving as expected on some pages. I checked in CRX and the showPinterestSave property seems correctly set to 'true'.

Unfortunately, I can’t quickly add debug output to the page due to the deployment process (PR + code promotion).

Is there any way to test or inspect ${properties.showPinterestSave} (or other component properties) at runtime on a published page without going through a deployment?

Any tips or tools you use to quickly validate component property values would be really appreciated.

Thanks!

Best answer by SantoshSai

Hi @sanaqu,

You can debug your HTL/Sightly expression at runtime without going through a full deployment - and one of the best tools for this is the AEM HTL REPL by Adobe.

It is a web-based tool you can install on your AEM instance (author or publish) to test and evaluate HTL code and server-side JavaScript without deploying changes.

 

Install the package on your local AEM Author/Publish via Package Manager, and you're ready to go.

GitHub link: https://github.com/adobe/aem-htl-repl

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
August 5, 2025

Hi @sanaqu,

You can debug your HTL/Sightly expression at runtime without going through a full deployment - and one of the best tools for this is the AEM HTL REPL by Adobe.

It is a web-based tool you can install on your AEM instance (author or publish) to test and evaluate HTL code and server-side JavaScript without deploying changes.

 

Install the package on your local AEM Author/Publish via Package Manager, and you're ready to go.

GitHub link: https://github.com/adobe/aem-htl-repl

Santosh Sai
SanaQuAuthor
Level 2
August 5, 2025

This helps! Thank you