factor out simple templates into a separate SimpleTemplateDir
there's no need to bloat TreehouseDir with that logic
This commit is contained in:
parent
b792688776
commit
550c062327
7 changed files with 211 additions and 156 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue