Public Instance methods
set_layout_locals(opts)
Update the default layout locals to use in this branch.
[show source]
# File lib/roda/plugins/branch_locals.rb 34 def set_layout_locals(opts) 35 if locals = @_layout_locals 36 @_layout_locals = locals.merge(opts) 37 else 38 @_layout_locals = opts 39 end 40 end
set_view_locals(opts)
Update the default view locals to use in this branch.
[show source]
# File lib/roda/plugins/branch_locals.rb 43 def set_view_locals(opts) 44 if locals = @_view_locals 45 @_view_locals = locals.merge(opts) 46 else 47 @_view_locals = opts 48 end 49 end