aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 3 insertions, 1 deletions
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 = {