lib/musterb/template_handler.rb in musterb-0.0.6 vs lib/musterb/template_handler.rb in musterb-0.0.7

- old
+ new

@@ -5,10 +5,10 @@ "render :partial => '#{partial}', :locals => {:initial_context => musterb.context}" end def self.call(template) options = {:render_partial_template => method(:render_partial_template)} - options[:initial_context] = "initial_context" if template.locals.include? :initial_context + options[:initial_context] = "initial_context" if template.locals.include? "initial_context" erb = Musterb.to_erb(template.source, options) klass = ActionView::Template::Handlers::ERB klass.erb_implementation.new(erb, :trim => (klass.erb_trim_mode == "-")).src end end \ No newline at end of file