aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 12:52:48 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 12:52:48 +0200
commit68572d35cef7e1c9813e032f4c278d7eaa57a07a (patch)
tree5abfd64dd8f9f5443d6fc61662d82c668830cd87
parentcd685eefb48bf16ff1e15205228a758daccb0dd6 (diff)
downloadaskama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.tar.gz
askama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.tar.bz2
askama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.zip
Add note to template_dir() about being duplicated
-rw-r--r--askama_derive/src/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/askama_derive/src/path.rs b/askama_derive/src/path.rs
index 03ab20d..a78daf8 100644
--- a/askama_derive/src/path.rs
+++ b/askama_derive/src/path.rs
@@ -46,6 +46,7 @@ pub fn find_template_from_path<'a>(path: &str, start_at: Option<&str>) -> PathBu
}
}
+// Duplicated in askama
fn template_dir() -> PathBuf {
let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
path.push("templates");