factor out simple templates into a separate SimpleTemplateDir

there's no need to bloat TreehouseDir with that logic
This commit is contained in:
りき萌 2025-07-10 16:50:41 +02:00
parent b792688776
commit 550c062327
7 changed files with 211 additions and 156 deletions

View file

@ -168,6 +168,12 @@ impl<'a> dyn Erased<'a> + 'a {
}
}
impl Dir for () {
fn query(&self, _path: &VPath, _query: &mut Query) {
// Noop implementation.
}
}
impl<T> Dir for &T
where
T: Dir,