From f15869492fab866ee3990890b88f220bf856a43a Mon Sep 17 00:00:00 2001 From: Jamie Hodge Date: Mon, 14 Jan 2013 22:24:40 +0100 Subject: [PATCH] Add yajl json support --- sinatra-contrib/lib/sinatra/respond_with.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/sinatra-contrib/lib/sinatra/respond_with.rb b/sinatra-contrib/lib/sinatra/respond_with.rb index ed8a99fd..0d698915 100644 --- a/sinatra-contrib/lib/sinatra/respond_with.rb +++ b/sinatra-contrib/lib/sinatra/respond_with.rb @@ -224,6 +224,7 @@ module Sinatra :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] -