title: Include HTML information using template files
body: <p>In my web application I use Java Servlets and Freemarker Templates to generate the HTML output. After I have already set up several template files I would like to add a navigation bar throughout all templates. I would like to avoid adding the necessary HTML code to each template file, since when I change it I have to do it all over again.</p>
  
  <p>What is best practice in this case? The only solution I have thought of is defining the navigation bar in another text file and add it through template processing, something like this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
     &lt;title&gt;...&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  ${navigationBarConent}
  ...
  &lt;/body&gt;
  </code></pre>