askama/testing/tests/ui/match_with_extra.rs
2022-01-31 11:30:35 +01:00

21 lines
297 B
Rust

use askama::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() {
}