@app.route('/books/<letter>')
@app.route('/books/<letter>/<int:page>')
def list_books_filtering(letter, page=1):
    title = u'Books starting with %s' % letter.upper()
    pagination = Book.query.starting_with(letter).paginate(page=page, per_page=5)
    return render_template('/books/list_filtered.html', pagination=pagination,
                           title=title, letter=letter)
dataset/ETHPy150Open cobrateam/flask-mongoalchemy/examples/books_collection/collection/views.py/list_books_filtering/original