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
qwert_ukg
08/29/2018, 8:30 PMorangy
fun 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() } }qwert_ukg
08/29/2018, 9:04 PMcreateHTML() is not FlowContent thats all my html content declared into html builder, wraped by div 🙂... Try to find right wayorangy
.apply(init)?orangy
div, just pass it directly to the div function