I have come across a piece of code in a springboot (1.3.2) - thymeleaf (2.1.4) - thymeleaf layout dialect (1.3.1) project I'm working where the content html file contains:
<html xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/sitelayout">
...
<div th:fragment="content" class="container">
....
</div>
And the sitelayout.html file contains:
<div layout:fragment="content">
<h1>Static content for prototyping purposes only</h1>
<p>
This is the layout of the site. The actual content will come from individual views making use of this layout
</p>
</div>
===================================================
I searched the web and could not find enough information / documentation example about how it works. Can someone point me to the right direction?