Skip to content

Viewport handles views and knows how to go from one page to another.

Notifications You must be signed in to change notification settings

debianw/viewport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewport

Main viewport

Usage

var Viewport = require('viewport')
  , page = require('page');

/**
 * viewport
 */

var viewport = new Viewport();

/**
 * Routes
 */

page('/', function (ctx) {
  viewport.goTo(home, ctx);
});

About

Viewport handles views and knows how to go from one page to another.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published