Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3196] Allow extensions to register their blueprints
Extensions can use the IBlueprint interface to register their own blueprints. The main use case we have for it now is to register custom routes, but it will also be used to register template folders, resources etc. Routes registered from plugins are flagged as such so theu can be prioritized by the AppDispatcher middleware: Flask Extension > Pylons Extension > Flask Core > Pylons Core To do this we use a custom class for the Werkzeug rules used by Flask. Updated the AppDispatcher tests and the test routing plugin. All credit for these changes goes to @Brook
- Loading branch information
Showing
3 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters