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