agahnim.dev/src/templates/notfound.rs
2026-03-19 18:10:05 +01:00

10 lines
241 B
Rust

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())
}