some refactoring

This commit is contained in:
Denis Savosin
2024-10-02 12:18:55 +07:00
parent 16f43c6172
commit 9b00237657
33 changed files with 109 additions and 82 deletions

View 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)