{% macro pagination(pager, t, compact=false, always=false) %} {% if pager and (pager.previous or pager.next or always) %} {% endif %} {% endmacro %}