blob: 53e339782ab157dad6e67c91f48f5b55afed33f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#[macro_use]
extern crate askama;
use askama::Template;
#[derive(Template)]
#[template(path = "let.html")]
struct LetTemplate<'a> {
s: &'a str,
}
#[test]
fn test_let() {
let t = LetTemplate { s: "foo" };
assert_eq!(t.render().unwrap(), "foo");
}
|