How ‘createPagination’ comes to be effective?
sunkant opened this issue · comments
Lu Qi commented
I see createPagination
in views/articles/index.jade:
- if (pages > 1)
ul.pagination
!= createPagination(pages, page)
But I can not find createPagination
definition throughout the whole project, I want to ask where createPagination
is defined and how it comes to be effective? Thanks.
madhums commented
It comes from the view-helpers
module that is used as a middleware.
https://github.com/madhums/node-express-mongoose-demo/blob/master/config/express.js#L103
https://github.com/madhums/node-view-helpers/blob/master/index.js#L84
Lu Qi commented
Thanks a lot. Great projject 💯