{% macro msg_error(name) %}
{% for error in form.{{ name }}.errors %}
<H5>{{ error }}</H5>
{% endfor %}
{% endmacro %}
I used macros in the jinja2 template syntax, but an error was reported. The problem is that the name is quoted incorrectly. How should the name be quoted correctly?
For example
name is the variable name in your template