mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 05:21:14 +00:00
40 lines
781 B
Rust
40 lines
781 B
Rust
use askama::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %-}{% endif %}")]
|
|
struct BlockSuppress {
|
|
cond: bool,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %+}{% endif %}")]
|
|
struct BlockPreserve {
|
|
cond: bool,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %~}{% endif %}")]
|
|
struct BlockFold {
|
|
cond: bool,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %}{% endif %-}")]
|
|
struct BlockSuppress2 {
|
|
cond: bool,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %}{% endif %+}")]
|
|
struct BlockPreserve2 {
|
|
cond: bool,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{% if cond %}{% endif %~}")]
|
|
struct BlockFold2 {
|
|
cond: bool,
|
|
}
|
|
|
|
fn main() {}
|