PagesDialect for Thymeleaf - Quick start

Configuration for Maven + Spring users

  1. Add the dependency to your pom.xml

    Note that 2.0.x versions are compatible with Thymeleaf 2.0.x versions, while 2.1.x versions are compatible with Thymeleaf 2.1.x versions.

  2. Add PagesDialect to your Thymeleaf configuration within the Spring configuration file

  3. [Optional] If you don't use a Servlet 3.0+ capable container or you have the attribute metadata-complete="true" in your web-app element, add to your web.xml

  4. [Optional] If you want to use a SNAPSHOT version and you haven't got it, add Sonatype Snapshot repository to your pom.xml

Back