module Roda::RodaPlugins::Render::InstanceMethods
def view_layout_opts(opts)
rendering the layout template. If a layout should not be
If a layout should be used, return a hash of options for
def view_layout_opts(opts) if layout = opts.fetch(:layout, render_opts[:layout]) layout_opts = render_layout_opts method_layout_opts = opts[:layout_opts] layout_opts.merge!(method_layout_opts) if method_layout_opts case layout when Hash layout_opts.merge!(layout) when true # use default layout else layout_opts[:template] = layout end layout_opts end end