bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.37k stars 1.46k forks source link

Add module-level merge function #1223

Closed ghost closed 4 years ago

ghost commented 4 years ago

Add merge function to the module-level functions like route function and mount function. This PR will be easy to merge the routes into the default application.

defnull commented 4 years ago

Merging usually only happens if an application grows big enough to justify splitting it up in multiple parts. In that case I'd rather have people move away from the module-level shortcuts and be more explicit about application context. This change would send the wrong message, I think. The module-level stuff is targeted at really really simple one-module applications.

ghost commented 4 years ago

@defnull Thank you for the feedback.