everything ready !
This commit is contained in:
parent
aa5140842e
commit
0cbee2e73e
7 changed files with 44 additions and 1 deletions
10
src/templates/index.rs
Normal file
10
src/templates/index.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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())
|
||||
}
|
||||
1
src/templates/mod.rs
Normal file
1
src/templates/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
pub mod index;
|
||||
Loading…
Add table
Add a link
Reference in a new issue