Thymeleaf is a templating engine that gets particular attention from the Spring community.
Its success is due mostly to its friendly syntax (it almost looks like HTML) and the ease with which it can be extended.
Various extensions are available and integrated with Spring Boot:
Support |
Dependency |
---|---|
Layouts |
|
HTML5 data-* attributes |
|
Internet Explorer conditional comments |
|
Support for spring security |
|
A very good tutorial on Thymeleaf's integration with Spring can be found at http://www.thymeleaf.org/doc/tutorials/2.1/thymeleafspring.html.
Without further ado, let's add the spring-boot-starter-thymeleaf
dependency to bootstrap the thymeleaf templating engine:
buildscript { ext { springBootVersion = '1.2.5.RELEASE' } repositories...