title: Thymeleaf layout decorator does not work
body: <p>Hi guys i have learning thymeleaf, i do not understand why its not working i read a lot of example and i made it correctly but it does not work. Can somebody tell me what i have missing here?</p>
  
  <p>This is my layout:</p>
  
  <pre><code>&lt;html xmlns:th="http://www.thymeleaf.org"
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"&gt;
  </code></pre>
  
  <p>
      </p>
  
  <pre><code>&lt;link href="webjars/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;th:block layout:fragment="styles"&gt;
  </code></pre>
  
  <p>
  </p>
  
  <pre><code>&lt;nav class="navbar navbar-light bg-light"&gt;
      &lt;span class="navbar-brand mb-0 h1"&gt;Decorator Sample&lt;/span&gt;
  &lt;/nav&gt;
  
  &lt;div class="container"&gt;
      &lt;div class="content"&gt;
          &lt;div layout:fragment="page_content"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script src="webjars/jquery/3.0.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="webjars/bootstrap/4.0.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;th:block layout:fragment="scripts"&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>And this is my index:</p>
  
  <pre><code>&lt;html xmlns:th="http://www.thymeleaf.org" 
    xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" 
    layout:decorate="~{_layout}"&gt;
  &lt;body&gt;
      &lt;div layout:fragment="page_content"&gt;
  
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>