use rustigo::prelude::*; fn books(stream: TcpStream, _: Request) { html!(stream; "
That book doesn't exist.
"); return; } let text = format!("
Loading book {book}
"); html!(stream; text); } fn main() { let mut rustigo = Rustigo::default(); rustigo.handle("/", books).handle("/book*", book); rustigo.listen("localhost:7878", 4).unwrap(); }