Hi, all.

I wrote a basic script to test render_cheetah, but it doesn't work.
What's wrong with my code?

----8<--------
#!/usr/bin/env python
# encoding: utf-8
# File: code.py

import web
from web.contrib.template import render_cheetah

urls = (
    '/(.*)', 'hello'
    )

app = web.application(urls, globals(), web.reloader)
render = render_cheetah('templates/')
web.webapi.internalerror = web.debugerror

class hello:
    def GET(self, name):
        return render.hello(name)

if __name__ == "__main__":
    app.run()
----8<--------

File: templates/hello.html
----8<---------
Hello, world.
----8<---------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to