module Sinatra::Namespace::InstanceMethods

def redirect_to(uri, *args)

def redirect_to(uri, *args)
  redirect("#{@namespace.pattern}#{uri}", *args)
end

def settings

def settings
  @namespace
end

def template_cache

def template_cache
  super.fetch(:nested, @namespace) { TemplateCache.new }
end