lixxu/flask-paginate — pull request #2 by alcaras (2013-02-14 03:19:43+00:00)
Title: fix for not taking into account route variables

currently flask-paginate does not properly handle pagination for pages of this sort
/user//page/

it'll error out because id is not passed along (as it doesn't show up in args and doesn't show up in endpoint).

this fix fixes this by adding in view_args to args, which is where the route information (e.g. id in this example) shows up.