forked from orbit-oss/flask
Unify the uses of "urls" vs "URLs".
Use "URLs", which is more prevailing in the source code.
This commit is contained in:
parent
d1423b3e16
commit
3767e7ba4f
2 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<h1>This is blueprint example</h1>
|
<h1>This is blueprint example</h1>
|
||||||
<p>
|
<p>
|
||||||
A simple page blueprint is registered under / and /pages
|
A simple page blueprint is registered under / and /pages
|
||||||
you can access it using this urls:
|
you can access it using this URLs:
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ url_for('simple_page.show', page='hello') }}">/hello</a>
|
<li><a href="{{ url_for('simple_page.show', page='hello') }}">/hello</a>
|
||||||
<li><a href="{{ url_for('simple_page.show', page='world') }}">/world</a>
|
<li><a href="{{ url_for('simple_page.show', page='world') }}">/world</a>
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ def url_for(endpoint, **values):
|
||||||
'executed when application context is available.')
|
'executed when application context is available.')
|
||||||
|
|
||||||
# If request specific information is available we have some extra
|
# If request specific information is available we have some extra
|
||||||
# features that support "relative" urls.
|
# features that support "relative" URLs.
|
||||||
if reqctx is not None:
|
if reqctx is not None:
|
||||||
url_adapter = reqctx.url_adapter
|
url_adapter = reqctx.url_adapter
|
||||||
blueprint_name = request.blueprint
|
blueprint_name = request.blueprint
|
||||||
|
|
@ -284,7 +284,7 @@ def url_for(endpoint, **values):
|
||||||
external = values.pop('_external', False)
|
external = values.pop('_external', False)
|
||||||
|
|
||||||
# Otherwise go with the url adapter from the appctx and make
|
# Otherwise go with the url adapter from the appctx and make
|
||||||
# the urls external by default.
|
# the URLs external by default.
|
||||||
else:
|
else:
|
||||||
url_adapter = appctx.url_adapter
|
url_adapter = appctx.url_adapter
|
||||||
if url_adapter is None:
|
if url_adapter is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue