blob: 1a4478124a45afdbdf7dca79fe8a3cc328e78094 (
plain) (
tree)
|
|
use askama::Template;
#[derive(Template)]
#[template(path = "if-coerce.html")]
struct IfCoerceTemplate {
t: bool,
f: bool,
}
#[test]
fn test_coerce() {
let t = IfCoerceTemplate { t: true, f: false };
assert_eq!(t.render().unwrap(), "ftftfttftelseifelseif");
}
|