lib/hanami/view/rendering.rb in hanami-view-0.8.0 vs lib/hanami/view/rendering.rb in hanami-view-1.0.0.beta1

- old
+ new

@@ -34,10 +34,10 @@ # include Hanami::View # end # # template = Hanami::View::Template.new('index.html.erb') # view = IndexView.new(template, {article: article}) - def initialize(template, locals) + def initialize(template, **locals) @template = template @locals = locals @scope = Scope.new(self, @locals) end