express-pagination

0.0.5 • Public • Published

express-pagination

This is a super simple module to provide a pagination helper function in your views. Code is derived from the pagination logic found in wordpress.

Using It

Add the module 'express-pagination' to your package.json and refresh your dependencies via npm.

Set it up in your app via:

app.helpers(require('pagination'));
 

or

app.helpers({
  paginate:require('pagination').paginate
});
 

And use it from your view (given the following locals are defined).

!= paginate(count, resultsPerPage, currentPage)

License

This software is licensed under the GNU Public License. See COPYING for further details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    9
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i express-pagination

Weekly Downloads

9

Version

0.0.5

License

none

Last publish

Collaborators

  • jamescarr