Tuesday, December 23, 2014

More Bottle

I forgot to mention before that I looked at the example where multiple routes are used
I think it's cool how whatever you put in, it will replace "{{name}}" but if nothing is put in it will put stranger. I just don't quite understand the code because I don't understand why it defaults to stranger but is somehow overwritten if a different route is put in and I also don't see why you need the "name=name" part.
I also looked at a login form which talked about Get requests and Post requests which seems kind of complicated and an Error request which seems pretty simple.

1 comment:

  1. That's how Python works. Parameters can have default values, making passing them in optional. No need if you want the default value. I agree with you it is cool. I love how flexible and dynamic Python is. It doesn't get in your way since it lets you do what you want to do.

    ReplyDelete