Kotlin HTML
JVM使用
repositories {
jcenter()
}
dependencies {
// JVM version of the HTML library
implementation( " dev.scottpierce.kotlin-html:kotlin-html-writer-jvm:0.7.24 " )
// If you are using Ktor, you can use this as well
implementation( " dev.scottpierce.kotlin-html:kotlin-html-ktor:0.7.24 " )
}
多平台使用
repositories {
jcenter()
}
kotlin {
commonMain {
dependencies {
implementation( " dev.scottpierce.kotlin-html:kotlin-html-writer:0.7.24 " )