Mercurial > genshi > mirror
comparison examples/cherrypy/index.py @ 432:406915754870 trunk
* Updated change log
* Updated CherryPy example to 3.0
author | cmlenz |
---|---|
date | Thu, 22 Mar 2007 18:54:09 +0000 |
parents | 8a13cbab435e |
children |
comparison
equal
deleted
inserted
replaced
431:ad01564e87f2 | 432:406915754870 |
---|---|
13 def index(self): | 13 def index(self): |
14 tmpl = loader.load('index.html') | 14 tmpl = loader.load('index.html') |
15 return tmpl.generate(name='world').render('xhtml') | 15 return tmpl.generate(name='world').render('xhtml') |
16 | 16 |
17 | 17 |
18 cherrypy.root = Example() | |
19 | |
20 if __name__ == '__main__': | 18 if __name__ == '__main__': |
21 cherrypy.config.update(file='config.txt') | 19 cherrypy.quickstart(Example(), config='config.txt') |
22 cherrypy.server.start() |