]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
fix get_template example 1682/head
authorDavid Lord <davidism@gmail.com>
Mon, 4 Jul 2022 14:36:59 +0000 (07:36 -0700)
committerDavid Lord <davidism@gmail.com>
Mon, 4 Jul 2022 14:36:59 +0000 (07:36 -0700)
docs/templates.rst

index 7a64750beb4ccea6078441a549a1f4b01e4d1424..341d0e12f3db639448fb18dcae223169b9f54413 100644 (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