title: How to use th:block and th:include in thymeleaf?
body: <p><a href="https://i.stack.imgur.com/nkADJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nkADJ.png" alt="Visual"></a></p>
  
  <p>My html other pages is in the edit folder.</p>
  
  <p>I am currently using this script below</p>
  
  <pre><code>&lt;!--/*/ &lt;th:block th:include="fragments/header :: header"&gt;&lt;/th:block&gt; /*/--&gt;
  </code></pre>
  
  <p>Script above works if the html document is in the same directory. (Eg; index.html is able to read the fragments). But I created a new directory(named: edit) to store my html pages. I need to get out of the current folder so it would be able to find the fragment folder using ../</p>
  
  <pre><code>&lt;!--/*/ &lt;th:block th:include="../fragments/header :: header"&gt;&lt;/th:block&gt; /*/--&gt;
  </code></pre>
  
  <p>But this method does not work. How would I be able to exit out a folder using this syntax?</p>