lib/musterb/template_handler.rb in musterb-0.1.2 vs lib/musterb/template_handler.rb in musterb-0.2.0

- old
+ new

@@ -13,10 +13,10 @@ def text_with_escaping(tokens) "<%= #{tokens} %>" end def self.build_initial_context(locals) - "Musterb::RailsLocalsExtractor.new(#{locals.inspect}, binding, Musterb::InstanceVariableExtractor.new(self, Musterb::BindingExtractor.new(binding)))" + "Musterb::RailsLocalsExtractor.new(#{locals.inspect}, binding, Musterb::InstanceVariableExtractor.new(self, Musterb::NullExtractor.new))" end def self.call(template) initial_context = template.locals.include?("initial_context") ? "initial_context" : build_initial_context(template.locals.map(&:to_s) - ["initial_context"]) erb = Musterb.to_erb(template.source, :musterbifier_klass => self, :initial_context => initial_context) \ No newline at end of file