Skip to content
Myr

Expanded url_for docstring for blueprints

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

authored by Armin Ronacher · committed by Armin Ronacher · parent ea7a172 · Browse files · 1 file+7 added−1 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:flask/helpers.py+7 added-1 removed
157 unmodified lines
158 """Generates a URL to the given endpoint with the method provided.159160 Variable arguments that are unknown to the target endpoint are appended161 to the generated URL as query arguments. If the value of a query argument162 is `None`, the whole pair is skipped.162 is `None`, the whole pair is skipped. In case blueprints are active163 you can shortcut references to the same blueprint by prefixing the164 local endpoint with a dot (``.``).165166 This will reference the index function local to the current blueprint::167168 url_for('.index')169170 For more information, head over to the :ref:`Quickstart <url-building>`.171172 :param endpoint: the endpoint of the URL (name of the function)173 :param values: the variable arguments of the URL rule
409 unmodified lines