From 38c467746e11f5da795b920b309a9051d6a39ddf Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 5 Feb 2017 10:45:53 +0100 Subject: Generate path-based type aliases --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src') 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() } -- cgit