lib/camp.js
function augmentServer(server, opts) {
  server.templateReader = opts.templateReader || templateReader;
  server.documentRoot = opts.documentRoot || p.join(process.cwd(), 'web');
  server.saveRequestChunks = !!opts.saveRequestChunks;
  server.template = template;
  server.stack = [];
  server.stackInsertion = 0;
  defaultRoute.forEach(function(mkfn) { server.handle(mkfn(server)); });
  server.stackInsertion = 0;
  server.on('request', function(req, res) { listener(server, req, res) });
}
function augmentServer(server, opts) {
  server.templateReader = opts.templateReader || templateReader;
  server.documentRoot = opts.documentRoot || p.join(process.cwd(), 'web');
  server.saveRequestChunks = !!opts.saveRequestChunks;
  server.template = template;
  server.stack = [];
  server.stackInsertion = 0;
  defaultRoute.forEach(function(mkfn) { server.handle(mkfn(server)); });
  server.stackInsertion = 0;
  server.on('request', function(req, res) { listener(server, req, res) });
}
function augmentServer ( server , opts ) { server . templateReader = opts . templateReader || templateReader ; server . documentRoot = opts . documentRoot || p . join ( process . cwd ( ) , 'web' ) ; server . saveRequestChunks = ! ! opts . saveRequestChunks ; server . template = template ; server . stack = [ ] ; server . stackInsertion = 0 ; defaultRoute . forEach ( function ( mkfn ) { server . handle ( mkfn ( server ) ) ; } ) ; server . stackInsertion = 0 ; server . on ( 'request' , function ( req , res ) { listener ( server , req , res ) } ) ; }
Camp class is classy.  Camp has a router function that returns the stack of functions to call, one after the other, in order to process the request.
Camp class is classy . Camp has a router function that returns the stack of functions to call one after the other in order to process the request .