aboutsummaryrefslogblamecommitdiffstats
path: root/askama_test/tests/simple.rs
blob: 9dbfc9cc7e07cff0889493978b45c6e3c5b3fafe (plain) (tree)
1
2
3
4
5
6
7
8
9








                            
                                 






                                                             
                                        
 
#![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\n");
}