Something
public text v1 · immutable#!/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()