{% macro render(base_url, count, index, suffix='') %} {% for i in range(0, count) %} {% if i == index %} [{{ i + 1 }}] {% else %} [{{ i + 1 }}] {% endif %} {% endfor %} {% if index < count - 1 %} [Next] {% endif %}
{% endmacro %}