mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 22:11:17 +00:00

This change allows simplifying the use of filter expressions, because you won't have to care about spaces around the `|` pipe operator.
47 lines
729 B
Rust
47 lines
729 B
Rust
use rinja::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a & b }}")]
|
|
struct BitAnd {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a bitand b }}")]
|
|
struct BitAndIso646 {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a | b }}")]
|
|
struct BitOr {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a bitor b }}")]
|
|
struct BitOrIso646 {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a ^ b }}")]
|
|
struct Xor {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
#[derive(Template)]
|
|
#[template(ext = "txt", source = "{{ a xor b }}")]
|
|
struct XorIso646 {
|
|
a: u32,
|
|
b: u32,
|
|
}
|
|
|
|
fn main() {
|
|
}
|