coleifer/flask-peewee — pull request #45 by JCB-K (2012-08-15 16:47:15+00:00)
Title: get_pages now returns an integer

get_pages now returns an integer, so you can iterate over the page numbers. Something like:

```
{% for x in range(pagination.get_pages()) %}
{% if x == page %}
{{ x }}
{% else %}
{{ x }}
{% endif %}
{% endfor %}
```