blob: 2e34bc030b556547fcabd94d4ec27493e22d3e2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
extern crate askama;
#[macro_use]
extern crate askama_derive;
use askama::Template;
#[derive(Template)]
#[template(path = "eq.html")]
struct EqTemplate {
a: usize,
b: usize,
c: usize,
}
#[test]
fn test_eq() {
let t = EqTemplate { a: 1, b: 1, c: 2 };
assert_eq!(t.render(), "tf\n");
}
|