Sha256: 2697512a0cb4b169e750e6e8d6965b075d8a3fbe6ce91ccb0f3f80e8deecedb4

Contents?: true

Size: 546 Bytes

Versions: 5

Compression:

Stored size: 546 Bytes

Contents

Yodel.mime_types do
  mime_type :html do
    extensions 'html', 'htm', 'shtml'
    mime_types 'text/html'
    auth_type :page
    layout_processor :ember
  end
  
  mime_type :json do
    extensions 'json'
    mime_types 'application/json'
    layout_processor :eval
    auth_type :basic
    processor do |data|
      JSON.generate(data)
    end
  end
  
  mime_type :atom do
    extensions 'atom'
    mime_types 'application/atom+xml'
    layout_processor :eval
    auth_type :basic
    builder do
      Builder::XmlMarkup.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yodel-0.0.7 lib/yodel/mime_types/default_mime_set.rb
yodel-0.0.4 lib/yodel/mime_types/default_mime_set.rb
yodel-0.0.3 lib/yodel/mime_types/default_mime_set.rb
yodel-0.0.2 lib/yodel/mime_types/default_mime_set.rb
yodel-0.0.1 lib/yodel/mime_types/default_mime_set.rb