I don't suppose there is any way to do Next.js-style SSR rendering with
kotlinx.html
that also embeds interactivity/scripts, right?
Something like:
Copy code
router.get("/").handler { context ->
val text = createHTML().html {
div {
onClickFunction = { event ->
window.alert("Kotlin!")
}
}
}
context.response().end(text)
}
🚫 2
c
Colton Pierson
02/28/2022, 11:12 PM
https://github.com/kwebio/kweb-core is at least somewhat interesting for this case though - which is along the lines of phoenix live-views but a bit less feature complete