use fun_html::{Document, Element, attr::*, conv::*, html};
const HTMX_SRC: &str = "https://unpkg.com/htmx.org@2";
const MATCHA_SRC: &str = "https://matcha.mizu.sh/matcha.lite.css";
pub fn tmpl(children: Element) -> Document {
html(
[lang("en")],
[
head([
title("sightline"),
meta(charset_utf8()),
meta([
name("viewport"),
content("width=device-width, initial-scale=1.0"),
]),
script(HTMX_SRC),
link_stylesheet(MATCHA_SRC),
]),
body(children),
],
)
}