title: Spring MVC freemarker macro simplify
body: <p>I write a macro in freemarker:</p>
  
  <pre><code>&lt;#macro Hidden name value &gt;
          &lt;input name="${id}" value="${value}" type="hidden" /&gt;
  &lt;/#macro&gt;
  </code></pre>
  
  <p>Then I use it in my web page:</p>
  
  <pre><code>    &lt;@Hidden name="user_id" value=user_id /&gt;
      &lt;@Hidden name="user_name" value=user_name /&gt;
      &lt;@Hidden name="age" value=age /&gt;
      &lt;@Hidden name="address" value=address /&gt;
  </code></pre>
  
  <p><code>name</code> is always equals <code>value</code>, althougth <code>name</code> is a string, and <code>value</code> is dynamic var in <code>ModelMap</code>. I want to simplify the macor then I can use like that:</p>
  
  <pre><code>    &lt;@Hidden name="user_id"  /&gt;
      &lt;@Hidden name="user_name"  /&gt;
      &lt;@Hidden name="age"  /&gt;
      &lt;@Hidden name="address" /&gt;
  </code></pre>
  
  <p>so how to do modify the macro.</p>