blob: 528441e38bbcdab53c06d6a03b3d8370475822fa (
plain) (
tree)
|
|
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() {
}
|