2024-12-13 11:26:34 +01:00

15 lines
289 B
Swift

struct ContentBox: HtmlProducer {
let title: String
let text: String
func populate(_ result: inout String) {
result += "<div class='box'>"
result += "<span class='title'>\(title)</span>"
result += "<p>\(text)</p>"
result += "</div>"
}
}