@ -91,13 +91,13 @@ Extensive documentation on the jinja templating engine can be found here: <https
The first way to extend the template is by providing extra variables, this can be done by providing extra keyword arguments in the template render call. With the python line below a placeholder `extra_placeholder` is added and becomes available in the template:
The first way to extend the template is by providing extra variables, this can be done by providing extra keyword arguments in the template render call. With the python line below a placeholder `extra_placeholder` is added and becomes available in the template:
```
```python
rendered_template = template.render(template_placeholder="world", extra_placeholder="More information in the template")
rendered_template = template.render(template_placeholder="world", extra_placeholder="More information in the template")
```
```
In the template it is possible to refer to this placeholder with the `{{ }}` syntax, so:
In the template it is possible to refer to this placeholder with the `{{ }}` syntax, so:
```
```jinja
{{ extra_placeholder }}
{{ extra_placeholder }}
```
```
@ -107,15 +107,15 @@ Just like python jinja supports [loops](https://jinja.palletsprojects.com/en/3.1
It is important to understand that jinja places data in a template. It is not intended to generate data. To work with loops jinja needs a list (or actually an iterable), data it can loop over. In jinja the start of a loop is indicated with `{% for %}` the end of the loop with `{% endfor %}`
It is important to understand that jinja places data in a template. It is not intended to generate data. To work with loops jinja needs a list (or actually an iterable), data it can loop over. In jinja the start of a loop is indicated with `{% for %}` the end of the loop with `{% endfor %}`