use actix_web::{get, HttpResponse, Responder}; use askama::Template; use crate::template::render_html; #[get("/")] pub async fn page() -> impl Responder { HttpResponse::Ok().body(get_page()) } #[derive(Template)] #[template(path = "index.html")] struct IndexTemplate {} pub fn get_page() -> std::string::String { render_html(&IndexTemplate {}) }