Repository: rinja-rs/askama (language: rust)

Issue:
How to use super()?
I'm trying to get the `super()` macro to work.

rustc 1.70.0 (90c541806 2023-05-31)

Cargo.toml
```toml
[dependencies]
askama = {version = "0.11.1"}
```

page.html
```html
{% extends "base.html" %}

{% block content %}
child
{{super()}}
{% endblock %}
```

base.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
{% block content %}
parent
{% endblock %}
</body>
</html>
```

main.rs
```rust
use askama::Template;

#[derive(Template)]
#[template(path="page.html")]
struct Page {}

fn main() {
	println!("{}", Page{}.render().unwrap());
}
```

The error:
```
error[E0609]: no field `super` on type `&Page`
 --> src\main.rs:3:10
  |
3 | #[derive(Template)]
  |          ^^^^^^^^ unknown field
  |
  = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
```

I've tried with `{ super() }`, `{{ super }}`and `{% super() %}` but those don't work either. I haven't managed to find a working example on the internet...


Discussion / hints:
Use `{% call super() %}`
Thank you, closing this issue, but perhaps an example should be put in the docs since it is different enough from the standard jinja2 syntax.
@reportingissue if you are able to submit a PR to the docs where you'd have found it, that would be great!

Fix patch:
diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md
index c90820c93..ec35b947f 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 %}
 ```
 


Test patch: