This is my current code in register.html, is there a way to put this code in less lines?
{% for error in reg_form.confirm_pass.errors %}
<div class="ui tiny compact negative message">
<p>{{ error }}</p>
</div>
{% endfor %}
{% for error in reg_form.password.errors %}
<div class="ui tiny compact negative message">
<p>{{ error }}</p>
</div>
{% endfor %}
{% for error in reg_form.errors['email'] %}
<div class="ui tiny compact negative message">
<p>{{ error }}</p>
</div>
{% endfor %}