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