lib/roda/plugins/dry_view.rb in dry-web-roda-0.9.1 vs lib/roda/plugins/dry_view.rb in dry-web-roda-0.10.0

- old
+ new

@@ -11,15 +11,19 @@ end def view_context_options {} end + + def view_key(name) + "views.#{name}" + end end module RequestMethods def view(name, options = {}) options = {context: scope.view_context}.merge(options) - is to: "views.#{name}", call_with: [options] + is to: scope.view_key(name), call_with: [options] end end end register_plugin :dry_view, DryView