agahnim.dev/src/templates/index.rs
2026-03-19 14:38:27 +01:00

10 lines
228 B
Rust

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