lib/jcompiler.rb in jcompiler-0.1.41 vs lib/jcompiler.rb in jcompiler-0.1.42

- old
+ new

@@ -1,9 +1,7 @@ class Jcompiler - def initialize - @ids = {} - end + @@codes = {} private attr_accessor :ids @@ -30,11 +28,11 @@ brands.map do |brand| "{#{b(brand, bind).join(',')}}" end end - def code(bind) + def self.code(bind) debugger 1 end end @@ -43,10 +41,11 @@ self.default_format = Mime::JSON @@jcompiler = Jcompiler.new def self.call(template) - "@@jcompiler.code(template.identifier, template.source, binding)" + debugger + "Jcompiler.code(template.identifier, template.source, binding)" end end ActionView::Template.register_template_handler :jcompiler, JcompilerHandler