global

def _view(meth, page)

def _view(meth, page)
  auth = self
  auth_template_path = template_path(page)
  scope.instance_exec do
    template_opts = find_template(parse_template_opts(page, :locals=>{:rodauth=>auth}))
    unless File.file?(template_path(template_opts))
      template_opts[:path] = auth_template_path
    end
    send(meth, template_opts)
  end
end