I am trying make a macro that takes in arguments and adds the elements to the form field. This is my current code.
{% macro render_field(field,class,**custom) %}
<div class="form-group">
{% if field.name != "submit" %}
{{ field.label }}
{% endif %}
{{ field(class="form-control %s" % class , custom ) }}
</div>
{% endmacro %}
{{ render_field(form.reciver_name,"test","placeholder = a") }}
I just dont know how to accept multiple arguments and dont understand **kwargs very well
I get this error TemplateSyntaxError: expected token 'name', got '**'