aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-11 22:30:10 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-11 22:30:10 +0100
commitc8d9a6326d69471145ce6ec7742389a3f9186f1a (patch)
treec51c0f0c6034525a00fc809d62c9a112006febdd /askama_derive/src/generator.rs
parent987354946cde37ddd05d5316f7b581c9dd6f0131 (diff)
downloadaskama-c8d9a6326d69471145ce6ec7742389a3f9186f1a.tar.gz
askama-c8d9a6326d69471145ce6ec7742389a3f9186f1a.tar.bz2
askama-c8d9a6326d69471145ce6ec7742389a3f9186f1a.zip
Move find_template_from_path() into Config
Diffstat (limited to '')
-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 = {