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.
This commit is contained in:
Colin Adams 2018-12-07 11:06:38 -05:00 committed by David Lord
parent 215bbf21b5
commit e0916c7d0d

View file

@ -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
----------------------