Posts

Showing posts from January, 2023

Sightly

Sightly is an HTML templating language, introduced with AEM 6.0. It takes the place of JSP (Java Server Pages) and ESP (ECMAScript Server Pages) as the preferred templating system for HTML. The name “Sightly” (meaning “pleasing to the eye”) highlights its focus on keeping your markup beautiful, and thus maintainable, once made dynamic. Benefits: Lightweight: No dependencies Secure: XSS protection and URL externalization Code-less: Separation of business logic and mark-up . Powerful: Straight-forward API for logic, allowing to do virtually anything Intuitive Clear, simple. Sightly Tags/Attributes Sly Tag This acts as a DIV but in dom this won’t be shown, we can use data-sly-unwrap for the same functionality. sly tag don’t let be the statements the part of DOM and clears out the rendered HTML and get rid of additional divs. You can also use data-sly-unwrap to remove the element from DOM. <sly> </sly> Comments in Sightly <!--/* Ur code goes here */--> Use Statement data-...