From: Huck Boles Date: Tue, 30 May 2023 23:47:15 +0000 (-0500) Subject: fixed: base path not being added X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=df74314963211ba3543320f446f4afc66fb873c7;p=metaforge.git fixed: base path not being added --- diff --git a/src/metafile/file.rs b/src/metafile/file.rs index b664b09..c89c277 100644 --- a/src/metafile/file.rs +++ b/src/metafile/file.rs @@ -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)?;