]> git.huck.website - metaforge.git/commitdiff
fixed: base path not being added
authorHuck Boles <huck@huck.website>
Tue, 30 May 2023 23:47:15 +0000 (18:47 -0500)
committerHuck Boles <huck@huck.website>
Tue, 30 May 2023 23:47:15 +0000 (18:47 -0500)
src/metafile/file.rs

index b664b0941fc39e782ce8bb5cd3e7997dc8adb442..c89c277eafedbf295c7ff3e10ca32072dc984251 100644 (file)
@@ -73,6 +73,14 @@ impl<'a> MetaFile<'a> {
 
         base.merge(self);
         base.patterns.insert(Scope::into_global("SOURCE"), html);
+        let mut base_path = self.opts.pattern.join("base").join(
+            self.patterns
+                .get(&Scope::into_global("base"))
+                .unwrap_or(&"default".into()),
+        );
+
+        base_path.set_extension("meta");
+        base.path = base_path;
 
         let output = base.get_source().map_err(MetaError::from)?;