Registry / web-framework / kotlinx-html-jvm

kotlinx-html-jvm

JSON →
library0.12.0javamavenunverified

A Kotlin DSL for building HTML content on the JVM using type-safe builders.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-html-jvm</artifactId> <version>0.12.0</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-HTML-JVM
K
kotlinx-html-jvm
web-frameworkjavav0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createHTML
kotlinx.html.stream.createHTML

Generates an HTML string with a heading using the Kotlinx HTML DSL.

import kotlinx.html.stream.createHTML import kotlinx.html.* val html = createHTML().html { body { h1 { +"Hello, World!" } } }
Debug
Known issues
gotchaThe DSL is Kotlin-specific; not directly usable from Java without interop.
fix
Use Kotlin source files or call the generated HTML from Java via a wrapper.
affects: *
Upgrade
Version history
0.12.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
kotlinx-html-jvm — mvn dependency:get kotlinx-html-jvm · libregistry