blob: 67bb1260cbb2b2f50c9b22298549f2b999af4780 (
plain) (
tree)
|
|
#![feature(proc_macro)]
#[macro_use]
extern crate askama_codegen;
extern crate askama;
use askama::Template;
#[derive(Template)]
#[template(path = "simple.html")]
struct TestTemplate {
var: String,
}
#[test]
fn it_works() {
let s = TestTemplate { var: "foo".to_string() }.render();
assert_eq!(s, "hello world, foo");
}
|