mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
12 lines
290 B
Kotlin
12 lines
290 B
Kotlin
package com.example.demo.providers.html
|
|
|
|
class Html: Tag("html")
|
|
|
|
fun html(init: Html.() -> Unit): Html {
|
|
val tag = Html()
|
|
tag.init()
|
|
return tag
|
|
}
|
|
|
|
fun Html.table(init : Table.() -> Unit) = doInit(Table(), init)
|
|
fun Html.center(init : Center.() -> Unit) = doInit(Center(), init) |