Hacker News new | past | comments | ask | show | jobs | submit login

This does almost everything (and sending it to another class is pretty trivial): http://flask.pocoo.org/docs/0.10/quickstart/



Yup. And by the time you've done all of that, it's not vastly smaller than the code in the original example.

(Also, your setup is spread across every class registering itself, rather than in one central XML file that tells you all of your routing.)


No, it's usually done in a separate file containing all the routing (in most Python frameworks)

And no unreadable and overcomplicated XML for configuration, thank you very much




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: