Shade is an experimental web library framework for Kotlin. Using it allows you to quickly and efficiently build interactive websites.
Conceptually, it's a combination of Kweb, React, MobX, and the kotlinx HTML DSL.
- Shade uses the Kotlinx HTML DSL
- Shade is less opinionated about choice of web server and is designed to be drop-in for projects already using the Kotlinx HTML DSL
- Shade does not provide routing or database bindings
- Shade is based on components and reactive rerendering, like everything is wrapped in a granular kweb
render {}
block
Clone this project and run ./gradlew testServer
to play with a simple demo page. Check TestServer.kt for an example source.
Add the following to your Gradle build file:
maven { url 'https://dl.bintray.com/scottpjohnson/generic/' }
dependencies {
compile "net.justmachinery:shade:VERSION"
}
Replace VERSION with the latest version of this repository (currently )
This is a highly experimental library. The core is simple enough to be functionally usable, but parts and polish may be lacking. Help us out by opening an issue or submitting a patch!