askama/testing/tests/ui/match_with_extra.rs
2024-06-17 15:58:52 +02:00

21 lines
296 B
Rust

use rinja::Template;
#[derive(Template)]
#[template(
ext = "txt",
source = r#"
{%- match good -%}
// Help, I forgot how to write comments!
{%- when true %}
good
{%- when _ -%}
bad
{%- endmatch -%}"#
)]
struct MatchWithExtra {
good: bool,
}
fn main() {
}