Skip to content
Myr

Fix typo.

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

authored by Vivek Agarwal · committed by Vivek Agarwal · parent 27ffd01 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/tricks.rst+2 added-2 removed
13 unmodified lines
1415Jinja2 supports dynamic inheritance and does not distinguish between parent16and child template as long as no `extends` tag is visited. While this leads17to the surprising behavior that everything before the first `extends` tag18including whitespace is printed out instead of being igored, it can be used18including whitespace is printed out instead of being ignored, it can be used19for a neat trick.2021Usually child templates extend from one template that adds a basic HTML22skeleton. However it's possible put the `extends` tag into an `if` tag to22skeleton. However it's possible to put the `extends` tag into an `if` tag to23only extend from the layout template if the `standalone` variable evaluates24to false which it does per default if it's not defined. Additionally a very25basic skeleton is added to the file so that if it's indeed rendered with26`standalone` set to `True` a very basic HTML skeleton is added::
74 unmodified lines