diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-05 10:45:53 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-05 10:45:53 +0100 |
commit | 38c467746e11f5da795b920b309a9051d6a39ddf (patch) | |
tree | ba6ebd05b5ba0ba801b9d3f77e8dbdb075309e4a /askama_derive/src | |
parent | 715eed3aeeb8e5d0cbb420239432cda69e6131f8 (diff) | |
download | askama-38c467746e11f5da795b920b309a9051d6a39ddf.tar.gz askama-38c467746e11f5da795b920b309a9051d6a39ddf.tar.bz2 askama-38c467746e11f5da795b920b309a9051d6a39ddf.zip |
Generate path-based type aliases
Diffstat (limited to 'askama_derive/src')
-rw-r--r-- | askama_derive/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 03bfe7d..ba5dec4 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -59,5 +59,5 @@ pub fn derive_template(input: TokenStream) -> TokenStream { let path = get_path_from_attrs(&ast.attrs); let src = get_template_source(&path); let nodes = askama::parser::parse(&src); - askama::generator::generate(&ast, nodes).parse().unwrap() + askama::generator::generate(&ast, &path, nodes).parse().unwrap() } |