Sha256: 9929a540587e9cd012e04ec551067aa9d9188423efb25009d21551006a3633c5

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

module Shutterbug
  module Handlers
    module FileHandlers
      class HtmlFile < Base

        def file_extension
          "html"
        end

        def mime_type
          "text/html"
        end

        def handle(helper, req, env)
          sha  = regex.match(req.path)[1]
          file = @config.storage.new(filename(sha),self)
          helper.good_response(file.get_content, self.mime_type)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shutterbug-0.2.5 lib/shutterbug/handlers/file_handlers/html_file.rb
shutterbug-0.2.1 lib/shutterbug/handlers/file_handlers/html_file.rb
shutterbug-0.2.0 lib/shutterbug/handlers/file_handlers/html_file.rb
shutterbug-0.1.2 lib/shutterbug/handlers/file_handlers/html_file.rb
shutterbug-0.1.1 lib/shutterbug/handlers/file_handlers/html_file.rb
shutterbug-0.1.0 lib/shutterbug/handlers/file_handlers/html_file.rb