       res.type('text').send(text)
 
 
-  getHeadersForRoute: (routeInfo) ->
+  getHeadersForRoute: (definition) ->
     headers = {}
-    if routeInfo.maxAge?
-      headers['Cache-Control'] = "public, max-age=#{routeInfo.maxAge}"
+    if definition.maxAge?
+      headers['Cache-Control'] = "public, max-age=#{definition.maxAge}"
     headers
 
   # stash performance metrics, if handler available

          return router.handleErr(err, req, res) if err

          # Set any headers based on route.
          res.set(router.getHeadersForRoute(routeInfo))

          res.type('html').end(html)
          router.stashPerf(req, "render", new Date - start)


  # Given an object with 'controller' and 'action' properties,
  # return the corresponding action function.
  getAction: (definition) ->
    controller = @getController(definition.controller)
    controller[definition.action]

  # This is the method that renders the request.
  getHandler: (action, definition) ->
    router = @

    (req, res, next) ->
