tree: 17e26e954baf6cba7eb5bf7be927cbbe1441b511 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
README.md

Apache Sling Scripting Thymeleaf

scripting engine for Thymeleaf templates

Features

  • out of the box support for legacy HTML5 through embedded NekoHTML
  • runtime configurable TemplateModeHandlers for XML, VALIDXML, XHTML, VALIDXHTML, HTML5 and LEGACYHTML5
  • ResourceResolver backed by Sling's ResourceResolver
  • MessageResolver backed by ResourceBundleProvider from org.apache.sling.i18n
  • SlingDialect

Installation

For running Sling Scripting Thymeleaf with Sling's Launchpad some dependencies need to be resolved. This can be achieved by installing the following bundles:

mvn:org.apache.sling/org.apache.sling.i18n/2.2.10
mvn:org.javassist/javassist/3.18.2-GA
mvn:commons-io/commons-io/2.4
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.11.0_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5

There is a feature for Karaf:

karaf@root()> feature:repo-add mvn:org.apache.sling/org.apache.sling.launchpad.karaf-features/0.1.1-SNAPSHOT/xml/features
karaf@root()> feature:install sling-scripting-thymeleaf

relevant Thymeleaf issues