Skip to content
Myr

Merge pull request #1682 from pallets/docs-get_template-example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix get_template example

authored by David Lord · committed by GitHub · parents fcefbe7, 8fec9b4 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:docs/templates.rst+2 added-1 removed
597 unmodified lines
598 layout = env.get_template("debug_layout.html")599 else:600 layout = env.get_template("layout.html")601602 user_detail = env.get_template("user/detail.html", layout=layout)602 user_detail = env.get_template("user/detail.html")603 return user_detail.render(layout=layout)604605.. code-block:: jinja606607 {% extends layout %}
1343 unmodified lines