     fs.readFileSync p, 'utf8'
 
 # Takes in a function and builds express/socket.io apps based on the rules contained in it.
-zappa.app = (func,disable_io,require_css) ->
+zappa.app = (func,options) ->
   context = {id: uuid(), zappa, express}
   
   context.root = path.dirname(module.parent.filename)

          switch k
            when 'host' then host = v
            when 'port' then port = v
            when 'css' then require_css = v
            when 'disable_io' then disable_io = v

  zapp = zappa.app(root_function,disable_io,require_css)
  app = zapp.app

  if host then app.listen port, host

      css = String(v)
      route verb: 'get', path: k, handler: css, contentType: 'css'

  if typeof options.require_css is 'string'
    options.require_css = [options.require_css]
  for name in options.require_css
    context[name] = (obj) ->
      for k, v of obj
        css = require(name).render v, filename: k, (err, css) ->
