title: How to use thymeleaf namespace for including a header and footer of a page without using any templateresolver?
body: <p>I have a login page in which I have declared the inclusion of common templates as below
  </p>
  
  <p>"head" is the fragment name for header attribute in common.html and it includes inclusion of all the common js and css files.</p>
  
  <p>When I access the URL I see none of these css are being loaded on the page. To be noted here I am not using any templateresover classes or engine classes, it's purely static. </p>
  
  <p>Can anyone help me with this?</p>
  
  <p>Here is the login.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" 
        xmlns:th="http://www.thymeleaf.org"&gt;
  &lt;head&gt;
  &lt;meta name="loginPage" /&gt;
  &lt;meta th:remove="tag" th:include="../fragments/common :: [//head]"/&gt;
  
  &lt;/head&gt;
  &lt;body  class="claro"&gt;
  &lt;div&gt;&lt;/div&gt;
          &lt;br /&gt;
            &lt;div class="grid"&gt;
              &lt;div class="col-1-1" style="text-align: center; margin: 0 auto;"&gt;
                  &lt;form class="form" t"&gt;
                      &lt;fieldset&gt;
                          &lt;legend&gt;Please login&lt;/legend&gt;
                          &lt;div class="col-1-1"&gt;
                              &lt;div class="label"&gt;
                                  User Name:
                              &lt;/div&gt;
                              &lt;div class="input"&gt;
                                  &lt;input data-dojo-type="dijit/form/TextBox" id="user_name" length="35" required="true" /&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="col-1-1"&gt;
                             &lt;div class="label"&gt; 
                                  Password:
                             &lt;/div&gt; 
                             &lt;div class="input"&gt;
                              &lt;input  id="password" name="password" data-dojo-type="dijit/form/TextBox"
                                  type="password" required="required" maxlength="100" /&gt;
                             &lt;/div&gt;
                           &lt;/div&gt;
                             &lt;div class="col-1-1"&gt;
                                  &lt;div class="module"&gt;
                                      &lt;input type="submit" data-dojo-type="dijit.form.Button"
                                          id="save_msg_button" intermediateChanges="false"
                                          label="Login" iconClass="dijitNoIcon"&gt;&lt;/input&gt;
                                  &lt;/div&gt;
                             &lt;/div&gt;
  
                      &lt;/fieldset&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
           &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is the common.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:th="http://www.thymeleaf.org"&gt;
  &lt;head th:fragment="head"&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --&gt;
  &lt;!--[if lt IE 9]&gt;  
  &lt;script src="//html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;  
  &lt;![endif]--&gt;
  
  &lt;!-- stylesheets --&gt;
  &lt;link rel="stylesheet" th:href="@{/css/grid.css}" href=""
      type="text/css" /&gt;
  &lt;link rel="stylesheet" th:href="@{/css/app.css" href=""
      type="text/css" /&gt;
  &lt;link rel="stylesheet" th:href="@{/css/app.css" href=""
      type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../../cdn/js/dojo/dijit/themes/claro/document.css"
      type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../../cdn/js/dojo/dijit/themes/claro/claro.css"
      type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../../cdn/js/dojo/dijit/themes/claro/Gridx.css"
      type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../../cdn/js/dojo/dijit/themes/claro/Gridx_rtl.css"
      type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../../cdn/js/dojo/dijit/themes/claro/ExpandoPane.css"
      type="text/css" /&gt;
  
  
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          &lt;span&gt;Body goes here&lt;/span&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>