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.

API entry from apis.yml

apis.yml Raw ↑
aid: apache-sling:apache-sling-scripting-api
name: Apache Sling Scripting API
description: 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.
humanURL: https://sling.apache.org/documentation/bundles/scripting.html
tags:
- Scripting
- HTL
- JSP
- Groovy
- Templates
- Java
properties:
- type: Documentation
  url: https://sling.apache.org/documentation/bundles/scripting.html
- type: Documentation
  url: https://sling.apache.org/documentation/bundles/scripting/scripting-htl.html