def mount(path, opts = {}, klass = Gopher::Handlers::DirectoryHandler)
      debug_log "MOUNT #{path} #{opts.inspect}"
      opts[:mount_point] = path

      handler = klass.new(opts)
      handler.application = self

      #
      # add a route for the mounted class
      #
      route(globify(path)) do
        # when we call, pass the params and request object for this
        # particular request
        handler.call(params, request)
      end
    end
def mount(path, opts = {}, klass = Gopher::Handlers::DirectoryHandler)
      debug_log "MOUNT #{path} #{opts.inspect}"
      opts[:mount_point] = path

      handler = klass.new(opts)
      handler.application = self

      #
      # add a route for the mounted class
      #
      route(globify(path)) do
        # when we call, pass the params and request object for this
        # particular request
        handler.call(params, request)
      end
    end
mount a directory for browsing via gopher

 @param [Hash] path A hash specifying the path your route will answer to, and the filesystem path to use '/route' => '/home/path/etc'
 @param [Hash] opts a hash of options for the mount. Primarily this is a filter, which will restrict the list files outputted. example: :filter => '*.jpg'
 @param [Class] klass The class that should be used to handle this mount. You could write and use a custom handler if desired

 @example mount the directory '/home/user/foo' at the gopher path '/files', and only show JPG files:
   mount '/files' => '/home/user/foo', :filter => '*.jpg'