Having just discovered you wonderful new web frame...
# kilua
w
Having just discovered you wonderful new web framework kilua, I'm wondering (a) how is it similar to Kobweb and (b) what sets it apart from Kobweb? Both use Compose HTML, but the design and functionality might be different. https://kobweb.varabyte.com/
r
Kilua uses Compose Runtime but not Compose HTML.
The API is a bit different - greatly simplifying with Kobweb/Compose HTML you use parameters and modifiers of composable functions to specify HTML tag attributes and syles, with Kilua you use extension functions.
Very simple example with Kobweb/Compose HTML:
Copy code
Button(
    onClick = { console.log("Button clicked") },
    Modifier.borderRadius(50.percent).padding(0.px)
) {
    Text("Button label")
}
And the same with Kilua:
Copy code
button("Button label") {
    borderRadius(50.perc)
    padding(0.px)
    onClick {
        console.log("Button clicked")
    }
}
Compose HTML only supports K/JS target, Kilua supports both JS and Wasm.
Kobweb gives you pre-rendering (exporting static html for all pages), while Kilua gives you full server side rendering (SSR).
w
Thanks for the analysis. Now I'm even more excited about using Kilua.