10 lines
228 B
Rust
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())
|
|
}
|