【文件属性】:
文件名称:kotlin-html:用于HTML和CSS的Kotlin DSL
文件大小:364KB
文件格式:ZIP
更新时间:2021-02-02 23:57:17
kotlin html template-engine gradle gradle-kotlin-dsl
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 " )