mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 05:21:14 +00:00

Just migrated a repo from tera to askama and this was one of the only things that was different. This is also coherent with `{% block %}` for which I added the same feature years ago.
26 lines
222 B
HTML
26 lines
222 B
HTML
1
|
|
|
|
{%- macro thrice(param) -%}
|
|
|
|
{{ param }} {{ param }} {{ param }}
|
|
|
|
{%- endmacro -%}
|
|
|
|
2
|
|
|
|
{%- call thrice(s) -%}
|
|
|
|
3
|
|
|
|
{%- macro twice(param) -%}
|
|
|
|
{{ param }} {{ param }}
|
|
|
|
{%- endmacro twice -%}
|
|
|
|
4
|
|
|
|
{%- call twice(s) -%}
|
|
|
|
5
|