blob: f7beb806a21220739e2aa53190fa17e165f85e11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#![feature(proc_macro)]
#[macro_use]
extern crate askama_codegen;
extern crate askama;
use askama::Template;
#[derive(Template)]
struct TestTemplate {
var: String,
}
#[test]
fn it_works() {
let s = TestTemplate { var: "foo".to_string() }.render();
assert_eq!(s, "hello world, foo");
}
|