use actix_web::{HttpResponse, Result}; use askama::Template; #[derive(Template)] #[template(path = "404.html")] struct P404; /// Render a simple 404 page pub async fn render() -> Result { Ok(HttpResponse::NotFound() .content_type("text/html") .body(P404.render().unwrap())) }