diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-10 12:52:48 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-10 12:52:48 +0200 |
commit | 68572d35cef7e1c9813e032f4c278d7eaa57a07a (patch) | |
tree | 5abfd64dd8f9f5443d6fc61662d82c668830cd87 /askama_derive/src/path.rs | |
parent | cd685eefb48bf16ff1e15205228a758daccb0dd6 (diff) | |
download | askama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.tar.gz askama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.tar.bz2 askama-68572d35cef7e1c9813e032f4c278d7eaa57a07a.zip |
Add note to template_dir() about being duplicated
Diffstat (limited to 'askama_derive/src/path.rs')
-rw-r--r-- | askama_derive/src/path.rs | 1 |
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"); |