what if you have some urls that are in urls =() and and some others in auto_application can we combine the 2 in webpy .3?
On 3/4/09, Anand Chitipothu <[email protected]> wrote: > > > > 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. > > > > -- BidEgg - Worlds best low price Auction site http://bidegg.com BidEgg - Worlds best low price Auction site --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
