> This article has a good proposal:
>
> http://sigusr2.net/2009/Mar/04/dispatching-with-with.html
You can do quite close to that even now.
app = web.auto_application()
class foo(app.page):
path = "/hello/(.*)"
def GET(self, name):
return "hello, " + name
if __name__ == "__main__":
app.run()
> This would make it more like Sinatra, which I'm a bit jealous of at the
> moment.
Yes, Sinatra is cool.
Ruby has nice tools to make DSLs and a well designed DSL always looks
better than a library.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---