pub fn doctype() -> impl Render
Examples found in repository?
examples/fortunes.rs (line 31)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
pub fn new(fortunes: &[Fortune]) -> impl std::fmt::Display + '_ {
markup::new! {
{markup::doctype()}
html {
head {
title { "Fortunes" }
}
body {
table {
tr { th { "id" } th { "message" } }
@for item in fortunes {
tr {
td { @item.id }
td { @item.message }
}
}
}
}
}
}
}