forked from orbit-oss/flask
Fix view decorators docs
This commit is contained in:
parent
a82cc31af8
commit
a541c2ac8b
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ Here is the code for that decorator::
|
||||||
def decorated_function(*args, **kwargs):
|
def decorated_function(*args, **kwargs):
|
||||||
template_name = template
|
template_name = template
|
||||||
if template_name is None:
|
if template_name is None:
|
||||||
template_name = f"'{request.endpoint.replace('.', '/')}.html'"
|
template_name = f"{request.endpoint.replace('.', '/')}.html"
|
||||||
ctx = f(*args, **kwargs)
|
ctx = f(*args, **kwargs)
|
||||||
if ctx is None:
|
if ctx is None:
|
||||||
ctx = {}
|
ctx = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue