From cc7b9796d8ba07a46a92a2bc68933a460c7d7266 Mon Sep 17 00:00:00 2001 From: reportingissue <136993729+reportingissue@users.noreply.github.com> Date: Tue, 20 Jun 2023 19:25:55 -0400 Subject: Added example on how to use super() --- book/src/template_syntax.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.
- {% block content %}{% endblock %} + {% block content %}

Placeholder content

{% endblock %}
@@ -171,6 +171,7 @@ Here's an example child template: {% block content %}

Index

Hello, world!

+ {% call super() %} {% endblock %} ``` -- cgit