aboutsummaryrefslogtreecommitdiffstats
path: root/book/src
diff options
context:
space:
mode:
authorLibravatar reportingissue <136993729+reportingissue@users.noreply.github.com>2023-06-20 19:25:55 -0400
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-06-21 10:34:46 +0200
commitcc7b9796d8ba07a46a92a2bc68933a460c7d7266 (patch)
treebcb175034b6d451919d70145d1fdc7e34e222083 /book/src
parent964993d6024c485af4cf1a1e24ef7c4c3550830d (diff)
downloadaskama-cc7b9796d8ba07a46a92a2bc68933a460c7d7266.tar.gz
askama-cc7b9796d8ba07a46a92a2bc68933a460c7d7266.tar.bz2
askama-cc7b9796d8ba07a46a92a2bc68933a460c7d7266.zip
Added example on how to use super()
Diffstat (limited to 'book/src')
-rw-r--r--book/src/template_syntax.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md
index c90820c..ec35b94 100644
--- a/book/src/template_syntax.md
+++ b/book/src/template_syntax.md
@@ -141,7 +141,7 @@ A base template defines **blocks** that child templates can override.
</head>
<body>
<div id="content">
- {% block content %}{% endblock %}
+ {% block content %}<p>Placeholder content</p>{% endblock %}
</div>
</body>
</html>
@@ -171,6 +171,7 @@ Here's an example child template:
{% block content %}
<h1>Index</h1>
<p>Hello, world!</p>
+ {% call super() %}
{% endblock %}
```