FrameWok - Easy Application Cooking

Coming soon...

#!/usr/bin/env python

from kitchen.wok import *

@GET('/')
def hello_page( web ):
    print 'hello world'


@GET('/hello/{name:word}')
def hello_named_page( web ):
    print 'hello %s' % web.params.name

        
@POST('/post_test/')
def post_page(web):

    if web.user:
        web.render('ok.html')
    else:
        web.redirect( web.user.login_url )