mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
20 lines
484 B
Rust
20 lines
484 B
Rust
use askama::Template;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = r#"{% let x = [_] %}"#, ext = "html")]
|
|
struct UnderscoreErr1;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = r#"{% if (_ + 12) != 0 %}{% endif %}"#, ext = "html")]
|
|
struct UnderscoreErr2;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = r#"{% if 12 == _ %}{% endif %}"#, ext = "html")]
|
|
struct UnderscoreErr3;
|
|
|
|
#[derive(Template)]
|
|
#[template(source = r#"{% match _ %}{% endmatch %}"#, ext = "html")]
|
|
struct UnderscoreErr4;
|
|
|
|
fn main() {}
|