Skip to content
Permalink
Browse files

Merge pull request #342 from uvcrew/paginator-should-expose-page

Expose page when rendering Paginated pages
  • Loading branch information...
jnordberg committed Jun 23, 2019
2 parents 196f478 + 17176c6 commit be757f5f7d72ddce462f67913c9cd7c578162018
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/blog/plugins/paginator.coffee
@@ -46,7 +46,7 @@ module.exports = (env, callback) ->
return callback new Error "unknown paginator template '#{ options.template }'"

# setup the template context
ctx = {@articles, @pageNum, @prevPage, @nextPage}
ctx = {@articles, @pageNum, @prevPage, @nextPage, page: this}

# extend the template context with the enviroment locals
env.utils.extend ctx, locals

0 comments on commit be757f5

Please sign in to comment.
You can’t perform that action at this time.