Hi, my name is Kandar. I love web.py because it so extremely simple. You can see the sample on the code below:
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()
So then I curious, what if you have lot of classes? Are you still wanna put it all in one file (code.py for example)? For me its a bed idea. So I decide to write some module to hendler more MVC style in your web.py apps.
First you may have to se the samples. Open this following urls:
So this is my root folder and how its sources looks like:
controllers/Thats it! Now your wep.py apps more MVC style! Any comments? write here http://www.kandar.info/index.php/python/make-your-web-py-python-framework-more-mvc-style