Skip to content

betaagency-os/express-pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

express-pager

Install

$ npm i --save express-pager

Usage:

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

Different directory

app.use('/help', pager({ dir: 'help' }))

List of pages

app.use('/page', pager({ autoindex: true }))

Options

  • views - path to views directory
  • directory - subdirectory with templates
  • tplSuffix - .jade
  • autoindex - auto generate list of pages in /
  • hrefPrefix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published