controllers.py ----------------------------------------- import logging import cherrypy import turbogears from turbogears import controllers, expose, validate, redirect from tg import json log = logging.getLogger("tg.controllers") class Root(controllers.RootController): @expose(template="tg.templates.world") def index(self): return dict(tg_flash="Hello, world!") ----------------------------------------- templates/world.kid -----------------------------------------