module Roda::RodaPlugins::Render::ClassMethods

def inherited(subclass)

affecting the parent class.
them as necessary to prevent changes in the subclass
Copy the rendering options into the subclass, duping
def inherited(subclass)
  super
  opts = subclass.opts[:render].dup
  opts[:layout_opts] = opts[:layout_opts].dup.extend(RodaDeprecateMutation)
  opts[:template_opts] = opts[:template_opts].dup.extend(RodaDeprecateMutation)
  opts[:cache] = thread_safe_cache if opts[:cache]
  subclass.opts[:render] = opts.extend(RodaDeprecateMutation)
end

def render_opts

Return the render options for this class.
def render_opts
  opts[:render]
end