Permalink
Browse files

Add yajl json support

  • Loading branch information...
1 parent 180008c commit ae47542e82fba2093e4a3020a2fd00160b02a52a @jamiehodge jamiehodge committed Jan 14, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/respond_with.rb
View
1 lib/sinatra/respond_with.rb
@@ -224,6 +224,7 @@ def compile!(verb, path, block, options = {})
:css => [:less, :sass, :scss],
:xml => [:builder, :nokogiri],
:js => [:coffee],
+ :json => [:yajl],
:html => [:erb, :erubis, :haml, :slim, :liquid, :radius, :mab, :markdown,
:textile, :rdoc],
:all => Sinatra::Templates.instance_methods.map(&:to_sym) + [:mab] -

0 comments on commit ae47542

Please sign in to comment.