# File lib/sinatra/rabbit.rb, line 225
      def generate_documentation
        coll = self
        ::Sinatra::Application.get("/api/docs/#{@name}") do
          coll.check_supported(driver)
          @collection = coll
          @operations = coll.operations
          @features = driver.features(coll.name)
          respond_to do |format|
            format.html { haml 'docs/collection''docs/collection' }
            format.xml { haml 'docs/collection''docs/collection' }
          end
        end
      end