diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2016-12-22 16:20:13 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2016-12-22 16:20:13 +0100 |
commit | 062500ef0c4b586dfe0a7e9508f0b11d4fd55703 (patch) | |
tree | ab7d3c76aa9b6589d1bb9568384963a94ffb3107 /askama_test | |
parent | e619345766e98578929061e566178010c171df48 (diff) | |
download | askama-062500ef0c4b586dfe0a7e9508f0b11d4fd55703.tar.gz askama-062500ef0c4b586dfe0a7e9508f0b11d4fd55703.tar.bz2 askama-062500ef0c4b586dfe0a7e9508f0b11d4fd55703.zip |
Attempt at grabbing template source from file
Diffstat (limited to '')
-rw-r--r-- | askama_test/tests/simple.html | 1 | ||||
-rw-r--r-- | askama_test/tests/simple.rs | 1 |
2 files changed, 2 insertions, 0 deletions
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, } |