Evgeniy Zemtsov
05/18/2023, 12:19 PMbuildString {
appendHTML().b { +"Here is a list of users" }
append("\n\n")
for (user in users) {
appendHTML().b { +"${user.type}: "}
append("${user.login}\n")
}
}
Maybe anyone has a better example?Evgeniy Zemtsov
05/18/2023, 12:55 PMdmcg
10/14/2024, 4:17 PMfun FlowContent.generateStockListTable(model: StockListViewModel) {
table {
tr {...
and I’d like to be able to render just the table and its children at the top level as string.
I can say
createHTML().div {
generateStockListTable(this@with)
}
but how do I not have the div rendered?