Hello, I am using Maud more and more along with htmx, and I really like it. It just took me a bit of time to understand how to return a full document. This is what I came up with:
pub fn document(markup: maud::Markup) -> maud::Markup {
maud::html! {
(maud::DOCTYPE)
html lang="en" {
head {
meta charset="UTF-8";
meta name="viewport" content="width=device-width, initial-scale=1.0";
link rel="stylesheet" href="index.css";
script src="https://unpkg.com/htmx.org@1.9.10" {}
title { "My Cool WebApp" }
}
body { (markup) }
}
}
}
Hello, I am using Maud more and more along with htmx, and I really like it. It just took me a bit of time to understand how to return a full document. This is what I came up with:
Maybe it could be documented somewhere?