old_contents: from cherrypy import wsgiserver
  from app import app
  
  # from http://flask.pocoo.org/snippets/24/
  d = wsgiserver.WSGIPathInfoDispatcher({'/': app})
  server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), d)
  
  if __name__ == '__main__':
     try:
        server.start()
     except KeyboardInterrupt:
        server.stop()
new_contents: from cherrypy import wsgiserver
  from app import app
  import jinja2.ext
  
  # from http://flask.pocoo.org/snippets/24/
  d = wsgiserver.WSGIPathInfoDispatcher({'/': app})
  server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), d)
  
  if __name__ == '__main__':
     try:
        server.start()
     except KeyboardInterrupt:
        server.stop()
subject: Use jinja2