Enter the following code and run it. If you point your web browser to the familiar http://localhost:8080 address, you will see something similar to the picture below with the time changing every five seconds or so. (The code is also available as
Our small CherryPy application offers just two methods (both highlighted in the code). The
time() method that simply returns the current time as plain ...