In Sightly (HTL), what is the purpose of data-sly-use?

  • To create a reusable template for the component
  • To define a Java class to handle rendering logic
  • To import CSS styles for the component
  • To include external JavaScript files
The data-sly-use attribute in Sightly is used to bind a Java class to the HTML file, allowing the separation of logic and presentation in AEM component development.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *