Python Flask Render Field macro take arguments jinja2
<p>I am trying make a macro that takes in arguments and adds the elements to the form field. This is my current code.</p>

<pre><code>      {% macro render_field(field,class,**custom) %}
  &lt;div class="form-group"&gt;
    {% if field.name != "submit" %}
    {{ field.label }}
    {% endif %}



      {{ field(class="form-control %s" % class , custom ) }}
  &lt;/div&gt;
  {% endmacro %}


{{ render_field(form.reciver_name,"test","placeholder = a") }}
</code></pre>

<p>I just dont know how to accept multiple arguments and dont understand **kwargs very well </p>

<p>I get this error TemplateSyntaxError: expected token 'name', got '**'</p>