lib/roda/plugins/branch_locals.rb in roda-2.29.0 vs lib/roda/plugins/branch_locals.rb in roda-3.0.0
- old
+ new
@@ -5,16 +5,16 @@
module RodaPlugins
# The branch_locals plugin allows you to override view and layout
# locals for specific branches and routes.
#
# plugin :render
- # plugin :render_locals, :render=>{:footer=>'Default'}, :layout=>{:title=>'Main'}
+ # plugin :render_locals, render: {footer: 'Default'}, layout: {title: 'Main'}
# plugin :branch_locals
#
# route do |r|
# r.on "users" do
- # set_layout_locals :title=>'Users'
- # set_view_locals :footer=>'(c) Roda'
+ # set_layout_locals title: 'Users'
+ # set_view_locals footer: '(c) Roda'
# end
# end
#
# The locals you specify in the set_layout_locals and set_view_locals methods
# have higher precedence than the render_locals plugin options, but lower precedence