title: How thymeleaf layout:decorator works
body: <p>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:</p>
  
  <pre><code>&lt;html xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/sitelayout"&gt;
  ...
  
  &lt;div th:fragment="content" class="container"&gt;
  ....
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the sitelayout.html file contains:</p>
  
  <pre><code>&lt;div layout:fragment="content"&gt;
      &lt;h1&gt;Static content for prototyping purposes only&lt;/h1&gt;
  
      &lt;p&gt;
          This is the layout of the site. The actual content will come from individual views making use of this layout
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>===================================================</p>
  
  <p>I searched the web and could not find enough information / documentation example about how it works. Can someone point me to the right direction?</p>