Furthermore Bottle does magic that is frowned upon by some people.
Furthermore Bottle does magic that is frowned upon by some people.
For the most part though, Flask is very magic free and the source is small enough to quickly figure out whats going on.
Can you elaborate?
By now I really would like to see them merge, but Bottle wants to stick to the design idea of just having one file which Flask will never be able to do because of the dependencies.
If you use Flask you create the application object explicitly and pass it the name of the module, relative to which Flask looks up resources.
Reading the source, I see no evidence of this.
https://github.com/defnull/bottle/blob/master/bottle.py#L161...
https://github.com/defnull/bottle/blob/master/bottle.py#L263...
You can override it but you would have to do that for every call to `template` or by monkey patching `TEMPLATE_PATH`.