Class ThymeleafProcessor

  • All Implemented Interfaces:
    RequestProcessor

    public class ThymeleafProcessor
    extends AbstractRequestProcessor
    A RequestProcessor using Thymeleaf as a rendering engine.
    Processing uses an IWebContext, with some additional context variables:
    • SESSION
      Provides a Map<String,Object> containing the current appNG session.
      Example:
       <div th:text="${#ctx.SESSION['subject'].name}"></div>
       
    • APP
      Provides the Applications properties as Properties
      Example:
       <div th:text="${#ctx.APP.getString('myProp')"></div>
       
    • SITE
      Provides the Sites properties as Properties. See SiteProperties for a list of available properties.
      Example:
       <div th:text="${#ctx.SITE.getString('timeZone')"></div>
       
    • PLATFORM
      Provides the platform properties as Properties. See Platform.Property for a list of available properties.
      Example:
       <div th:text="${#ctx.PLATFORM.getBoolean('debugMode')"></div>
       
    Author:
    Matthias Müller