blob: 01c64bf5753cd121c8ce3fbeab25ec48438a45be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
use askama::Template;
#[derive(Template)]
#[template(source = "{%- macro thrice(param) -%}
{{ param }}
{%- endmacro -%}
{%- call thrice(2, 3) -%}", ext = "html")]
struct InvalidNumberOfArgs;
#[derive(Template)]
#[template(source = "{%- macro thrice(param, param2) -%}
{{ param }} {{ param2 }}
{%- endmacro -%}
{%- call thrice() -%}", ext = "html")]
struct InvalidNumberOfArgs2;
#[derive(Template)]
#[template(source = "{%- macro thrice() -%}
{%- endmacro -%}
{%- call thrice(1, 2) -%}", ext = "html")]
struct InvalidNumberOfArgs3;
fn main() {
}
|