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] = subclass.opts[:render].dup
  if opts[:cache]
    if cache_class = opts[:cache_class]
      opts[:cache] = cache_class.new
    else
      opts[:cache] = thread_safe_cache
    end
  end
  opts.freeze
end

def render_opts

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