Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.6k stars 130 forks source link

Support path tag #268

Open ColtonIdle opened 4 months ago

ColtonIdle commented 4 months ago

Path isn't supported. Something like

@HtmlTagMarker inline fun FlowContent.path(classes : String? = null, crossinline block : PATH.() -> Unit = {}) : Unit = PATH( attributesMapOf("class", classes), consumer).visit(block)

@Suppress("unused") open class PATH(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("path", consumer, initialAttributes, null, false, false), HtmlBlockTag {

}

would be nice