lib/jcompiler.rb in jcompiler-0.1.7 vs lib/jcompiler.rb in jcompiler-0.1.8
- old
+ new
@@ -1,10 +1,10 @@
class Jcompiler
cattr_accessor :default_format
self.default_format = Mime::JSON
def self.call(template)
- "{\"a\"=>\"b\"}"
+ %{"{\"a\":\"b\"}"}
end
end
ActionView::Template.register_template_handler :jcompiler, Jcompiler