From c8d9a6326d69471145ce6ec7742389a3f9186f1a Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 11 Jul 2018 22:30:10 +0100 Subject: Move find_template_from_path() into Config --- askama_derive/src/generator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 3fce6c9..7bc7b41 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -491,7 +491,9 @@ impl<'a> Generator<'a> { fn handle_include(&mut self, ctx: &'a Context, ws: WS, path: &str) { self.flush_ws(ws); - let path = path::find_template_from_path(path, Some(&self.input.path)); + let path = self.input + .config + .find_template(path, Some(&self.input.path)); let src = path::get_template_source(&path); let nodes = parser::parse(&src); let nested = { -- cgit