# HG changeset patch # User Ludovic Chabant # Date 1524630466 25200 # Node ID 10fd55b9ccfb907d854e989e7a8d6b4b7577bf82 # Parent 5f97b5b59dfe7a146f801db096f38c2a123d74cc templating: Fix Inukshuk `paginate` function. diff -r 5f97b5b59dfe -r 10fd55b9ccfb piecrust/templating/_inukshukext.py --- a/piecrust/templating/_inukshukext.py Mon Apr 23 21:47:49 2018 -0700 +++ b/piecrust/templating/_inukshukext.py Tue Apr 24 21:27:46 2018 -0700 @@ -52,7 +52,7 @@ if ctx is None or ctx.page is None: raise Exception("Can't paginate when no page has been pushed " "on the execution stack.") - return Paginator(ctx.page, value, + return Paginator(value, ctx.page, sub_num=ctx.sub_num, items_per_page=items_per_page)