added askama, base template and index
This commit is contained in:
9
axum_server/src/pages/index.rs
Normal file
9
axum_server/src/pages/index.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use askama::Template;
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "index.html")]
|
||||
pub struct IndexTemplate {}
|
||||
|
||||
pub async fn render_index() -> IndexTemplate {
|
||||
IndexTemplate {}
|
||||
}
|
1
axum_server/src/pages/mod.rs
Normal file
1
axum_server/src/pages/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod index;
|
Reference in New Issue
Block a user