askama/testing/tests/ui/macro_default_value.stderr
Michael Pollind ce73e73720 feat: add caller pattern and adjust syntax to closer match jinja
Signed-off-by: Michael Pollind <mpollind@gmail.com>
2025-05-22 22:50:40 +02:00

24 lines
891 B
Plaintext

error: missing argument when calling macro `thrice`: `param1`
--> InvalidDefault1.html:4:2
"- call thrice() -%}{%- endcall -%}"
--> tests/ui/macro_default_value.rs:4:21
|
4 | #[template(source = "{%- macro thrice(param1, param2=0) -%}
| _____________________^
5 | | {{ param1 }} {{ param2 }}
6 | | {%- endmacro -%}
7 | | {%- call thrice() -%}{%- endcall -%}", ext = "html")]
| |_____________________________________^
error: macro `thrice` expected 2 arguments, found 3
--> InvalidDefault2.html:4:2
"- call thrice(1, 2, 3) -%}{%- endcall -%}"
--> tests/ui/macro_default_value.rs:11:21
|
11 | #[template(source = "{%- macro thrice(param1, param2=0) -%}
| _____________________^
12 | | {{ param1 }} {{ param2 }}
13 | | {%- endmacro -%}
14 | | {%- call thrice(1, 2, 3) -%}{%- endcall -%}", ext = "html")]
| |____________________________________________^