blob: 53e339782ab157dad6e67c91f48f5b55afed33f0 (
plain) (
tree)
|
|
#[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");
}
|