diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-16 14:11:16 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-16 14:11:16 +0200 |
commit | 15c08cf54ef49cdbc41af757893b882e6ab7300e (patch) | |
tree | cb78f7908cc761facc8487e5c901f2d66901d051 /askama_derive | |
parent | 316b28600d8af30b8af5d552b5f3b466a0ad7c22 (diff) | |
download | askama-15c08cf54ef49cdbc41af757893b882e6ab7300e.tar.gz askama-15c08cf54ef49cdbc41af757893b882e6ab7300e.tar.bz2 askama-15c08cf54ef49cdbc41af757893b882e6ab7300e.zip |
Use struct name for inline templates
Diffstat (limited to 'askama_derive')
-rw-r--r-- | askama_derive/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |