From 062500ef0c4b586dfe0a7e9508f0b11d4fd55703 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 22 Dec 2016 16:20:13 +0100 Subject: Attempt at grabbing template source from file --- askama_test/tests/simple.html | 1 + askama_test/tests/simple.rs | 1 + 2 files changed, 2 insertions(+) create mode 100644 askama_test/tests/simple.html (limited to 'askama_test') diff --git a/askama_test/tests/simple.html b/askama_test/tests/simple.html new file mode 100644 index 0000000..e544306 --- /dev/null +++ b/askama_test/tests/simple.html @@ -0,0 +1 @@ +hello world, {{ var }} diff --git a/askama_test/tests/simple.rs b/askama_test/tests/simple.rs index f7beb80..67bb126 100644 --- a/askama_test/tests/simple.rs +++ b/askama_test/tests/simple.rs @@ -7,6 +7,7 @@ extern crate askama; use askama::Template; #[derive(Template)] +#[template(path = "simple.html")] struct TestTemplate { var: String, } -- cgit