Is it any easy way to use CherryPy as an web server that will display .html
files in some folder? All CherryPy introductory documentation states that content is dynamically generated:
import cherrypy
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True
cherrypy.quickstart(HelloWorld())
Is it any easy way to use index.html
instead of HelloWorld.index() method?
cherrypy.quickstart()
tocherrypy.engine.start()
andcherrypy.engine.block()
before the content would be served. – Wendel