x-router modal middleware


Keywords
router, browserify, x-router, webmodules, modal
License
MIT
Install
npm install x-router-modal@0.5.3

Documentation

x-router-modal

modal middleware for x-router

$ npm install x-router x-router-modal --save

Usage

See example

var router = require('x-router');
var modal = require('x-router-modal');

router()
.use(modal({defaults: {width: 700}}))
.get('/', function(req, res, next) {
    res.modal('modal.html', {
    	width: 800,
        height: 600
    }, function(err) {
    	if( err ) return next(err);
        res.end();
    });
});