From 8fec9b4220dfd388d8bd6af043ef59821b06c8db Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 4 Jul 2022 07:36:59 -0700 Subject: fix get_template example --- docs/templates.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/templates.rst b/docs/templates.rst index 7a64750..341d0e1 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -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 -- cgit v1.2.1