Merge the routes of another :class:`Bottle` application or a list of :class:`Route` objects into this application. The routes keep their 'owner', meaning that the :data:`Route.app` attribute is not changed.
(self, routes)
| 790 | return self._mount_wsgi(prefix, app, **options) |
| 791 | |
| 792 | def merge(self, routes): |
| 793 | """ Merge the routes of another :class:`Bottle` application or a list of |
| 794 | :class:`Route` objects into this application. The routes keep their |
| 795 | 'owner', meaning that the :data:`Route.app` attribute is not |
| 796 | changed. """ |
| 797 | if isinstance(routes, Bottle): |
| 798 | routes = routes.routes |
| 799 | for route in routes: |
| 800 | self.add_route(route) |
| 801 | |
| 802 | def install(self, plugin): |
| 803 | """ Add a plugin to the list of plugins and prepare it for being |