From 48a8ebbde3ebe88d8653727209edbb1090c0831f Mon Sep 17 00:00:00 2001 From: narzeja Date: Sun, 16 Oct 2016 11:20:08 +0200 Subject: [PATCH] added descriptions for middleware/exceptions in blueprint documentation --- docs/blueprints.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/blueprints.md b/docs/blueprints.md index 1880ae88..10d80e65 100644 --- a/docs/blueprints.md +++ b/docs/blueprints.md @@ -56,7 +56,9 @@ In this example, the registered routes in the `app.router` will look like: ``` ## Middleware -Blueprints must be registered with the application. +Using blueprints allows you to also register middleware exclusively for that +blueprint, without interfering with other blueprints or routes registered +directly on the application object. ```python @bp.middleware @@ -73,7 +75,8 @@ async def halt_response(request, response): ``` ## Exceptions -Blueprints must be registered with the application. +Exceptions can also be applied exclusively to blueprints without interfering +with other blueprints or routes registered on the application object. ```python @bp.exception(NotFound)