qwert_ukg
08/29/2018, 8:01 PMval __name: String by lazy {
createHTML().small {
+name
}
}
like as my own delegate builder `html`:
val __name: String by html {
small {
+name
}
}
orangy
08/29/2018, 8:28 PMqwert_ukg
08/29/2018, 8:30 PMorangy
08/29/2018, 8:35 PMfun html(…) = lazy {…}
qwert_ukg
08/29/2018, 8:59 PMinit
extension lambda, directly on createHTML
function. I have only this:
fun html(init: FlowContent.() -> Unit) = lazy { createHTML().div { init() } }
createHTML()
is not FlowContent
thats all my html content declared into html
builder, wraped by div
🙂... Try to find right wayorangy
08/29/2018, 9:20 PM.apply(init)
?div
, just pass it directly to the div
function