All pastes #83816 Raw Edit

Something

public text v1 · immutable
·published 2006-07-10 03:09 UTC
rendered paste body
#!/usr/bin/env python
import cherrypy
from kid import Template

class Root:
        def index(self, **kwargs):
                template = Template(file='static/index.kid', **kwargs)
                return template.serialize()
        index.exposed = True

class About:
        def index(self):
                template = Template(file='static/about.kid')
                return template.serialize()
        index.exposed = True

cherrypy.root = Root()
cherrypy.root.about = About()
cherrypy.config.update(file="cherrypy.conf")
cherrypy.server.start()