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