   if options.io isnt false
     socketio = options.socketio ? require 'socket.io'
     io = context.io = socketio context.server, options.io ? {}
-
-  # Tracks if the zappa middleware is already mounted (`@use 'zappa'`).
-  zappa_used = no
 
   views = context.views = {}
 

  context.locals = app.locals

  context.shared = invariate (k,v) ->
    context.use 'zappa' unless zappa_used
    js = ";zappa.run(#{v});"
    js = minify(js) if app.settings['minify']
    route verb: 'get', path: k, handler: js, type: 'js'

        return

  context.client = invariate (k,v) ->
    js = ";zappa.run(#{v});"
    js = minify(js) if app.settings['minify']
    route verb: 'get', path: k, handler: js, type: 'js'
