feat: render wml decks with paginated card sub-documents

This commit is contained in:
randogoth 2026-10-04 21:04:49 +03:00
parent 36b868e094
commit 1de4674b09
17 changed files with 1519 additions and 5 deletions

View file

@ -45,7 +45,8 @@ pub fn serve(listener: &Listener, mut stream: TcpStream) -> Result<()> {
let mut file = std::fs::File::open(&path)?;
std::io::copy(&mut file, &mut stream)?;
}
// resolve_flat never yields a redirect; it is matched for completeness.
// resolve_flat follows redirects and sub-documents to real content, so
// neither reaches here; they are matched for completeness.
Ok(_) => stream.write_all(b"Not found\n")?,
Err(err) => {
log::warn!("{} nex {}: {err}", listener.name, for_log(path));