mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
some refactoring
This commit is contained in:
12
src/main/kotlin/com/example/demo/providers/html/Html.kt
Normal file
12
src/main/kotlin/com/example/demo/providers/html/Html.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user