We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5530ef3 commit 47c2241Copy full SHA for 47c2241
src/core/file.rs
@@ -85,9 +85,15 @@ pub fn get_files(dir: &Path) -> Result<Vec<File>, errors::Error> {
85
let name = e.file_name().to_string_lossy();
86
let is_template = name.ends_with(".tpl");
87
88
+ let target_path = if is_template {
89
+ e.path().with_extension("")
90
+ } else {
91
+ e.path().to_owned()
92
+ };
93
+
94
File {
95
group: group.clone(),
- relative_path: e.path().strip_prefix(dir).unwrap().to_owned(),
96
+ relative_path: target_path.strip_prefix(dir).unwrap().to_owned(),
97
source_path: e.path().to_owned(),
98
is_template,
99
}
0 commit comments