module Roda::RodaPlugins::Render::InstanceMethods

def parse_template_opts(template, opts)

Return a single hash combining the template and opts arguments.
def parse_template_opts(template, opts)
  opts = Hash[opts]
  if template.is_a?(Hash)
    opts.merge!(template)
  else
    if opts.empty? && (key = _cached_template_method_key(template))
      opts[:template_method_cache_key] = key
    end
    opts[:template] = template
    opts
  end
end