diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-11 22:38:07 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-11 22:38:07 +0100 |
commit | f9f4f57221e4488f3ecf26752e6c53d60167a5af (patch) | |
tree | e76898c9a4f86b5dceaa4707620f2245f448b6d2 /askama_derive/src/generator.rs | |
parent | c8d9a6326d69471145ce6ec7742389a3f9186f1a (diff) | |
download | askama-f9f4f57221e4488f3ecf26752e6c53d60167a5af.tar.gz askama-f9f4f57221e4488f3ecf26752e6c53d60167a5af.tar.bz2 askama-f9f4f57221e4488f3ecf26752e6c53d60167a5af.zip |
Move get_template_source() into askama_derive
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r-- | askama_derive/src/generator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 7bc7b41..15a2e61 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1,7 +1,7 @@ -use super::Context; +use super::{get_template_source, Context}; use input::TemplateInput; use parser::{self, Cond, Expr, MatchParameter, MatchVariant, Node, Target, When, WS}; -use shared::{filters, path}; +use shared::filters; use proc_macro2::Span; @@ -494,7 +494,7 @@ impl<'a> Generator<'a> { let path = self.input .config .find_template(path, Some(&self.input.path)); - let src = path::get_template_source(&path); + let src = get_template_source(&path); let nodes = parser::parse(&src); let nested = { let mut gen = self.child(); |