blob: 20214a051884f643689f1f0fdee30f1c9618302e (
plain) (
tree)
|
|
extern crate askama;
#[macro_use]
extern crate askama_derive;
use askama::Template;
#[derive(Template)]
#[template(path = "comparison.html")]
struct ComparisonTemplate {
a: usize,
b: usize,
c: usize,
}
#[test]
fn test_comparison() {
let t = ComparisonTemplate { a: 1, b: 1, c: 2 };
assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n");
}
|