       throw err
     else
       res.render('error_view', app: req.appContext, req: req);
+      next()
 
 getAuthenticate = (routeInfo) ->
   (req, res, next) ->

    action = getAction(routeInfo)
    handler = getHandler(action)
    authenticate = getAuthenticate(routeInfo)
    routeSpecs.push(['get', "/#{path}", authenticate, handler])

  routeSpecs

routes = require(paths.entryPath + '/routes')

config = null;

stashPerf = (req, name, value) ->
  if (config && config.stashPerf) 
    config.stashPerf(req, name, value)

# given a name, eg "listings#show"
# return function that matches that controller's action (eg the show method of the listings controller)
