I don't suppose there is any way to do Next.js-sty...
# server
g
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
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
g
Oh this is brilliant -- thank you!