use axum::{response::IntoResponse, routing::get, Router}; pub fn router() -> Router where S: Send + Sync + Clone + 'static, { Router::new().route("/", get(index)) } async fn index() -> impl IntoResponse { templates::index() } mod templates { use maud::{html, Markup, DOCTYPE}; pub fn index() -> Markup { html! { (DOCTYPE) head { title { "hi" } } body { form action="/login" method="post" { label { "name" input name="name" type="text" {} } label { "password" input name="password" type="password" {} } button { "hi" } } } } } }