Hey, I'm trying to use Mako with Web.py. The only thing that appears
on the screen is "None".

This is the code I use:
#!/usr/bin/env python

import config, web
from web.contrib.template import render_mako

urls = (
        '/.*', 'home',
        '/home.html', 'home'
        )

app = web.application(urls, globals(), autoreload=True)

render = render_mako(
        directories=['templates'],
        input_encoding='utf-8',
        output_encoding='utf-8'
        )

class home:
        def GET(self):
                output = 'Hello, world!!'

                render.home(content=output)

if __name__ == '__main__':
        app.run()

I'm using Web.py on Lighttpd with Fastcgi. I checked the error/access
logs and I could find anything.

I hope someone can help me. Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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