askama/testing/tests/no_implicit_prelude.rs
2025-03-11 19:31:06 +01:00

16 lines
288 B
Rust

#![no_implicit_prelude]
use ::askama::Template;
#[derive(Template)]
#[template(path = "hello.html")]
struct HelloTemplate<'a> {
name: &'a str,
}
#[test]
fn main() {
let hello = HelloTemplate { name: "world" };
::std::assert_eq!("Hello, world!", hello.render().unwrap());
}