Skip to content
Clone
13aafa3
21 lines 649 B Rust
use export::http::Html;
use i18n::UiLocale;
use maud::{DOCTYPE, Markup, html};
pub(crate) fn page_shell(title: &str, body: Markup, locale: UiLocale) -> Html<String> {
let v = html! {
(DOCTYPE)
html lang=(locale.tag()) {
head {
meta charset="utf-8";
meta name="viewport" content="width=device-width, initial-scale=1";
title { (title) }
script src="https://cdn.tailwindcss.com" {}
}
body class="bg-gray-50 min-h-screen text-gray-900 antialiased" {
(body)
}
}
};
Html(v.into_string())
}