From d6cc51efa0fc7528813f662f1d3db1756d7f6734 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 5 Sep 2017 20:39:42 +0200 Subject: Allow includes to use relative paths --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index d8b3a42..f2e35ed 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -495,7 +495,7 @@ impl<'a> Generator<'a> { fn handle_include(&mut self, state: &'a State, ws: &WS, path: &str) { self.prepare_ws(ws); - let path = path::find_template_from_path(&path, None); + let path = path::find_template_from_path(&path, Some(&state.input.path)); let src = path::get_template_source(&path); let nodes = parser::parse(&src); let nested = { -- cgit