11 lines
217 B
Rust
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())
|
|
}
|