tag

fun tag(name: String, init: HtmlTagBuilder.() -> Unit = {}): HtmlTagBuilder

Appends a sub-tag.

Return

this for concatenation

Parameters

name

name of the tag

init

action to run at initialization


fun tag(name: String, content: List<Node>): HtmlTagBuilder

Appends a sub-tag.

Return

this for concatenation

Parameters

name

name of the tag

content

nodes to render as HTML within the tag