view default/input/form.html @ 115:5d9e2270ceb4

blog/articles, input/navigation: moved navigation template in a dedicated macro
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 07:47:21 +0100
parents 87680eed9e25
children
line wrap: on
line source

{% macro form(action='', class='') %}
<form method="post" action="{{action}}" {{ {'class': class}|xmlattr }}>
    {% if csrf_token is defined %}
        <input type="hidden" name="csrf_token" value="{{csrf_token}}">
    {% endif %}
    {{ caller() }}
</form>
{% endmacro %}