python

Python3 + cherrPy+ jinja template engine

I couldn't find a working python3 example of the cherryPy web framwork, working with the jinja templating engine, even cherryPy's documentation was out of date. Find a working example below which develops from cherryPy's ajax example. You need to create the following directory structure and all code follows:

ajax.py
/templates/index.html
/public/css/style.css

ajax.py

import os, os.path
import random
import string
import cherrypy
from jinja2 import Environment, PackageLoader
 
info@theanthillsocial.co.uk XHTML 1.0 Strict CSS2 WAI