diff options
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index cf7f91f..2ddec55 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -6,6 +6,8 @@ extern crate syn; use proc_macro::TokenStream; +use std::path::Path; + mod generator; mod parser; mod path; @@ -35,7 +37,7 @@ fn build_template(ast: &syn::DeriveInput) -> String { if meta.print == Print::Ast || meta.print == Print::All { println!("{:?}", nodes); } - let code = generator::generate(ast, &meta.path, nodes); + let code = generator::generate(ast, Path::new(&meta.path), nodes); if meta.print == Print::Code || meta.print == Print::All { println!("{}", code); } |