From 15c08cf54ef49cdbc41af757893b882e6ab7300e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 16 Jun 2018 14:11:16 +0200 Subject: Use struct name for inline templates --- askama_derive/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/input.rs') diff --git a/askama_derive/src/input.rs b/askama_derive/src/input.rs index 9ea8ddc..c4bb0a3 100644 --- a/askama_derive/src/input.rs +++ b/askama_derive/src/input.rs @@ -18,7 +18,7 @@ impl<'a> TemplateInput<'a> { let (path, source) = match meta.source { Source::Source(ref s) => { let path = match meta.ext { - Some(ref v) => PathBuf::from(format!("_.{}", v)), + Some(ref v) => PathBuf::from(format!("{}.{}", ast.ident, v)), None => PathBuf::new(), }; (path, s.clone()) -- cgit