mirror of
https://github.com/Garmelon/Arbeitszeitdokumentationsgenerator.git
synced 2026-04-12 16:55:04 +02:00
Add maud
This commit is contained in:
parent
e9705e5c5c
commit
c423162a5f
3 changed files with 60 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use axum::{routing::get, Router};
|
||||
use clap::Parser;
|
||||
use maud::{html, Markup};
|
||||
use tokio::net::TcpListener;
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
@ -7,8 +8,10 @@ struct Args {
|
|||
addr: String,
|
||||
}
|
||||
|
||||
async fn root() -> &'static str {
|
||||
"Hello world!"
|
||||
async fn root() -> Markup {
|
||||
html! {
|
||||
h1 { "Hello world!" }
|
||||
}
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue