From 1e7577578f08f1685d98bdac5ce1c43973647aee Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 27 Jun 2011 09:30:27 +0200 Subject: [PATCH] Expanded url_for docstring for blueprints --- flask/helpers.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flask/helpers.py b/flask/helpers.py index 20cc8c77..0db7eb44 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -159,7 +159,13 @@ def url_for(endpoint, **values): Variable arguments that are unknown to the target endpoint are appended to the generated URL as query arguments. If the value of a query argument - is `None`, the whole pair is skipped. + is `None`, the whole pair is skipped. In case blueprints are active + you can shortcut references to the same blueprint by prefixing the + local endpoint with a dot (``.``). + + This will reference the index function local to the current blueprint:: + + url_for('.index') For more information, head over to the :ref:`Quickstart `.