Skip to content
Myr

Merge pull request #3019 from colincadams/patch-2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Clarify prefixing of urls for blueprint endpoints

authored by David Lord · committed by GitHub · parents 80f14e3, 4f638b9 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:docs/blueprints.rst+4 added-3 removed
73 unmodified lines
74 except TemplateNotFound:75 abort(404)7677When you bind a function with the help of the ``@simple_page.route``78decorator the blueprint will record the intention of registering the79function `show` on the application when it's later registered.78decorator, the blueprint will record the intention of registering the79function ``show`` on the application when it's later registered.80Additionally it will prefix the endpoint of the function with the81name of the blueprint which was given to the :class:`Blueprint`82constructor (in this case also ``simple_page``).82constructor (in this case also ``simple_page``). The blueprint's name83does not modify the URL, only the endpoint.8485Registering Blueprints86----------------------87
188 unmodified lines