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

@ -2,6 +2,7 @@ use core::fmt;
use super::{Dir, Query, VPath};
/// This Dir exists to serve as a compatibility layer for very old links that end with .html.
pub struct HtmlCanonicalize<T> {
inner: T,
}