title: How to evaluate parameter inside Freemarker macro?
body: <p>Suppose we have a simple Freemarker macro:</p>
  
  <pre><code>&lt;#macro myMacro expr&gt;
  
      &lt;#local x=1&gt;
        ${expr}
      &lt;/#local&gt;
  
      &lt;#local x=2&gt;
        ${expr}
      &lt;/#local&gt;
  
  &lt;/macro&gt;
  </code></pre>
  
  <hr>
  
  <p>&lt;@myMacro "A"/> gives:</p>
  
  <p>A
  A</p>
  
  <hr>
  
  <p>I need something like
  &lt;@myMacro "A${x}"/>  should give:</p>
  
  <p>A1
  A2</p>
  
  <p>but it doesn't work as ${x} interpolated before passing into macro.
  This doesn't work even if I use raw string r"A${x}" as a parameter.</p>
  
  <p>I tried to play with ?eval but there is no result yet(((</p>
  
  <p>Is it possible to do what I need?</p>