mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 21:41:35 +00:00
Update book/src/template_syntax.md
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
This commit is contained in:
parent
ce73e73720
commit
c88c4015d9
@ -921,9 +921,7 @@ Then if you don't pass a value for this argument, its default value will be used
|
||||
|
||||
### Call
|
||||
|
||||
you can specify a block for a call to be passed down as used as apart of a macro. For this case
|
||||
a block is denoted by `{% call(args) macro() %}`, ending with `{% endcall %}`. the callee is denoted by
|
||||
`{{caller()}}`.
|
||||
You can use the content in the call block directly inside the macro by using `{{ caller() }}`:
|
||||
|
||||
```jinja
|
||||
{% macro render_dialog(title, class='dialog') -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user