forked from orbit-oss/flask
Fix import in viewdecorators.rst for @templated
This commit is contained in:
parent
d4fec14544
commit
db1be12aea
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ way you can still use the redirect function or return simple strings.
|
||||||
Here the code for that decorator::
|
Here the code for that decorator::
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from flask import request
|
from flask import request, render_template
|
||||||
|
|
||||||
def templated(template=None):
|
def templated(template=None):
|
||||||
def decorator(f):
|
def decorator(f):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue