|
|
|
|
|
by timonoko
1303 days ago
|
|
In Python. of course. I use good old web.py, because I am lazy and stupid. "Django lets you write web apps in Django. TurboGears lets you write web apps in TurboGears. Web.py lets you write web apps in Python." I have (tiny) improvement to the web.py architecture.
Using global variable you can add stuff into webpage with "+=". class bucket: urls=()
bucket.urls=('/','index')
class index:
def GET(self):
bucket.urls+=('/goto:(.*)','goto')
class goto:
def GET(self,s):
bucket.urls+=('/kartta_(.*)','kartta')
class kartta:
def GET(self,s):
|
|