use askama::Template; use axum::response::{Html, IntoResponse}; #[derive(Template)] #[template(path = "notfound.html")] struct NotfoundTemplate; pub async fn notfound() -> impl IntoResponse { Html(NotfoundTemplate.render().unwrap()) }