fix get_template example
This commit is contained in:
parent
fcefbe7472
commit
8fec9b4220
@ -599,7 +599,8 @@ first and pass it in to ``render``.
|
||||
else:
|
||||
layout = env.get_template("layout.html")
|
||||
|
||||
user_detail = env.get_template("user/detail.html", layout=layout)
|
||||
user_detail = env.get_template("user/detail.html")
|
||||
return user_detail.render(layout=layout)
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user