rabl-rails/lib/rabl-fast-json/handler.rb
2012-02-27 14:49:34 +01:00

15 lines
326 B
Ruby

module RablFastJson
module Handlers
class Rabl
cattr_accessor :default_format
self.default_format = 'application/json'
def self.call(template)
%{
RablFastJson::Library.instance.
get_rendered_template(#{template.source.inspect}, self)
}
end
end
end
end