         next: next
 
       apply_helpers ctx
-
-      if app.settings['databag']
-        ctx.data = {}
-        copy_data_to ctx.data, [req.query, req.params, req.body]
 
       f.call ctx, req, res, next
 

          res.render.call res, name, opts, postrender

        apply_helpers ctx

        if app.settings['databag']
          ctx.data = {}
          copy_data_to ctx.data, [req.query, req.params, req.body]

        if app.settings['x-powered-by']
          res.setHeader 'X-Powered-By', "Zappa #{zappa.version}"

  result = uglify.minify js, fromString:true
  result.code

# Flatten array recursively (copied from Express's utils.js)
flatten = (arr, ret) ->
  ret ?= []
