title: Passing variable to a macro in Jinja2
body: <p>I have made some small macro that I am using to display text line and label for it:</p>
  
  <pre><code>{% macro input(name, text, help_text, value="", input_type) -%}
      &lt;label for="id_{{name}}"&gt;{{text}}&lt;span class="right"&gt;{{help_text}}&lt;/span&gt;&lt;/label&gt;
      &lt;input id="id_{{name}}" name="{{name}}" value="{{value}}" type="{{input_type}}" /&gt;
  {{%- endmacro %}
  </code></pre>
  
  <p>The problem is when I call jinja2 macro:</p>
  
  <pre><code>{{input("username", "Korisničko ime:", "Pomoć", {{value_username}}, "text")}
  </code></pre>
  
  <p>I can't get it to work when I call input with <code>{{value_username}}</code> as parameter, I always get an error.</p>
  
  <p>Do you know any solution how can I call <code>{{value_username}}</code> as parameter.</p>