lib/roda/plugins/render.rb
# Return a single hash combining the template and opts arguments.
Return a single hash combining the template and opts arguments.
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
            opts[:template] = template
            opts
          end
        end
def parse_template_opts ( template , opts ) opts = Hash [ opts ] if template . is_a? ( Hash ) opts . merge! ( template ) else opts [ :template ] = template opts end end
Return a single hash combining the template and opts arguments.
Return a single hash combining the template and opts arguments .
template
<not_specific>
opts
<not_specific>