I have a tool hook setup for 'before_finalize' like so:
def before_finalize():
d = cherrypy.response.body
location = '%s/views' % cherrypy.request.app.config['/']['application_path']
cherrypy.response.body = Template(file='%s/index.tmpl' % location).respond()
What I need to do is find out inside that hook what route (I'm using RoutesDispatcher) got us to that hook, or what the URI is, so I can appropriately find my template based on that. How can I find this information?