diff options
author | David Lord <davidism@gmail.com> | 2022-07-04 07:39:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 07:39:45 -0700 |
commit | e9cb0a5fb58c44cac8ccfb1f86536754c2c0e273 (patch) | |
tree | 9b14b6ec6f0daf71568abbfce6973e776bedf8be | |
parent | fcefbe74720ad98cee6f495b9c2342acc75cea5b (diff) | |
parent | 8fec9b4220dfd388d8bd6af043ef59821b06c8db (diff) | |
download | jinja2-e9cb0a5fb58c44cac8ccfb1f86536754c2c0e273.tar.gz |
Merge pull request #1682 from pallets/docs-get_template-example
fix get_template example
-rw-r--r-- | docs/templates.rst | 3 |
1 files changed, 2 insertions, 1 deletions
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 |