Rust library to generate static websites
1use maud::{Markup, PreEscaped, html};
2
3pub fn layout(content: String) -> Markup {
4 html! {
5 html {
6 head {
7 meta charset="utf-8";
8 title { "My Blog" }
9 }
10 body {
11 header {
12 h1 { "My Blog" }
13 }
14 main {
15 (PreEscaped(content))
16 }
17 footer {
18 p { "© 2024 My Super Blog" }
19 }
20 }
21 }
22 }
23}