mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
19 lines
318 B
Rust
19 lines
318 B
Rust
use askama::Template;
|
|
|
|
// Calling into a macro that expects content (`caller`) using
|
|
// the call-expr syntax should fail
|
|
|
|
#[derive(Template)]
|
|
#[template(
|
|
source = r#"
|
|
{% macro testmacro() %}
|
|
{{caller()}}
|
|
{% endmacro %}
|
|
{{ testmacro() }}
|
|
"#,
|
|
ext = "txt"
|
|
)]
|
|
struct MacroCallerWithCallExpr;
|
|
|
|
fn main() {}
|