From 4f638b9c28a07a951e46c348388c725c78fd5498 Mon Sep 17 00:00:00 2001 From: Colin Adams Date: Fri, 7 Dec 2018 11:06:38 -0500 Subject: [PATCH] Clarify prefixing of URLs for blueprint endpoints Clarify that endpoint names are prefixed by the name of the blueprint, but the URL is not automatically prefixed. --- docs/blueprints.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/blueprints.rst b/docs/blueprints.rst index 1b6de08c..d3ab234c 100644 --- a/docs/blueprints.rst +++ b/docs/blueprints.rst @@ -75,11 +75,12 @@ implement a blueprint that does simple rendering of static templates:: abort(404) When you bind a function with the help of the ``@simple_page.route`` -decorator the blueprint will record the intention of registering the -function `show` on the application when it's later registered. +decorator, the blueprint will record the intention of registering the +function ``show`` on the application when it's later registered. Additionally it will prefix the endpoint of the function with the name of the blueprint which was given to the :class:`Blueprint` -constructor (in this case also ``simple_page``). +constructor (in this case also ``simple_page``). The blueprint's name +does not modify the URL, only the endpoint. Registering Blueprints ----------------------