diff options
author | 2020-01-29 21:49:42 +0100 | |
---|---|---|
committer | 2020-01-29 21:49:44 +0100 | |
commit | cb660c7b8d398800d91d7c4c6c3276959fd14e71 (patch) | |
tree | 40f1dfad0cefe21dbcbf7ac1dd2707f7ed8df428 /askama_derive/src/generator.rs | |
parent | 91c2bbf80468c12d0663330cff185f1d7680c91e (diff) | |
download | askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.tar.gz askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.tar.bz2 askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.zip |
Move parser into askama_shared
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index ab1a012..4f5b495 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1,9 +1,9 @@ use super::{get_template_source, Context, Heritage}; use crate::input::{Source, TemplateInput}; -use crate::parser::{ - Cond, Expr, MatchParameter, MatchParameters, MatchVariant, Node, Target, When, WS, -}; use askama_shared::filters; +use askama_shared::parser::{ + parse, Cond, Expr, MatchParameter, MatchParameters, MatchVariant, Node, Target, When, WS, +}; use proc_macro2::Span; @@ -15,8 +15,6 @@ use std::{cmp, hash, mem, str}; use syn; -use crate::parser::parse; - pub(crate) fn generate( input: &TemplateInput, contexts: &HashMap<&PathBuf, Context>, |