Introduction to Layouts

Get introduced to Thymeleaf Layout Dialect to facilitate reusability.

We'll cover the following

Thymeleaf dialects

The Thymeleaf Layout DialectDialects are used to extend the default functionalities in Thymeleaf engine. Their features include processing logic, preprocessing logic, postprocessing logic, and expression objects. allows the building of reusable templates. It allows us to define extension points so that we can add content at arbitrary places in the template.

To use the Thymeleaf Layout Dialect, we need to add an extra dependency in the pom.xml:

Get hands-on with 1000+ tech skills courses.