Files
zero2prod/src/routes/home.rs
2025-09-17 03:40:23 +02:00

11 lines
217 B
Rust

use askama::Template;
use axum::response::Html;
#[derive(Template)]
#[template(path = "../templates/home.html")]
struct HomeTemplate;
pub async fn home() -> Html<String> {
Html(HomeTemplate.render().unwrap())
}