title: Spring Boot + Freemarker master template
body: <p>I`m trying to build an app with spring boot and freemarker as template engine. The problem I have is, I want to make a "master template" for all my pages to use. I found out that this is achievable in Freemarker with macros. This is how my indexmaster.ftl looks like:</p>
  
  <pre><code>[#macro indexmaster title="defaultTitle"]
  &lt;html&gt;
      &lt;head&gt; css stuff &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="content"&gt;[#nested /]&lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  [/#macro]
  </code></pre>
  
  <p>and in the other pages, I use the macro like this:</p>
  
  <pre><code>[#import "/WEB-INF/ftl/master/indexmaster.ftl" as layout /]
  [@layout.indexmaster title="My title"]
   ...rest of the page
  [/@layout.indexmaster]
  </code></pre>
  
  <p>The problem I`m facing is, the freemarker "code" is interpreted as text when I access the page</p>
  
  <p><a href="http://i.stack.imgur.com/lGriH.png" rel="nofollow">click me</a></p>
  
  <p>What am I doing wrong? Is there any extra spring boot configuration needed?</p>