fix get_template example

This commit is contained in:
David Lord 2022-07-04 07:36:59 -07:00
parent fcefbe7472
commit 8fec9b4220
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8

View File

@ -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