Apache Sling Scripting API
The Sling Scripting API enables server-side rendering through multiple scripting engines. Scripts are resolved from the content repository based on resource type and selectors, supporting HTL (HTML Template Language / Sightly), JSP (JavaServer Pages), Groovy, FreeMarker, Thymeleaf, and server-side JavaScript via Rhino. The ScriptEngine API allows integration of any JSR-223 compatible scripting language.