$ npm i --save express-pager
var pager = require('express-pager')
app.use('/page', pager())
$ mkdir views/page
$ echo '| hello, world' > views/page/hello.jade
$ curl http://localhost:3000/page/hello
hello, world
app.use('/help', pager({ dir: 'help' }))
app.use('/page', pager({ autoindex: true }))
- views - path to views directory
- directory - subdirectory with templates
- tplSuffix - .jade
- autoindex - auto generate list of pages in /
- hrefPrefix