Fleet Originate
Study the Introduction or
Getting Started from
the Kweb Client Handbook.
Why but every other net framework?
Kweb is designed to build it straightforward for developers to earn original websites without having to stress about the complexities of communication between the server and the browser. With a unified codebase, you’ll want to perhaps specialise in growing an intuitive and user-apt interface, in preference to spending time on technical details. By streamlining the come project, Kweb makes it less difficult to develop purposeful and ravishing websites that meet the wishes of your users.
How does it work?
Kweb is a much away interface for an online browser’s DOM (Document Object Mannequin). With Kweb, you’ll want to perhaps earn and manipulate DOM elements, and listen to for and cope with events, all the use of an intuitive Kotlin DSL that mirrors the structure of the HTML being created. Kweb is built on the Ktor framework, which handles HTTP, HTTPS, and WebSocket transport, and is optimized to diminish latency and resource usage on both the server and browser.
Example
import kweb.* import kweb.InputType.textual screech material fun main() { Kweb(port = 16097) { doc.physique { val name = kvar("") div { h1().textual screech material("Enter Your Title") enter(form = textual screech material).payment = name } div { span().textual screech material(name.scheme { "Whats up, $it" }) } } } }
This case illustrates growing DOM elements,
enhancing elements,
KVars, and binding
enter elements.