cgi.py: Export the template cache to the templates.