From: David Lord Date: Mon, 4 Jul 2022 14:36:59 +0000 (-0700) Subject: fix get_template example X-Git-Tag: 3.1.3~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1682%2Fhead;p=thirdparty%2Fjinja.git fix get_template example --- diff --git a/docs/templates.rst b/docs/templates.rst index 7a64750b..341d0e12 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