buildTag

fun <B : TagBuilder> TagNodeRenderer<B>.buildTag(name: String, init: B.() -> Unit): String

Builds a tag. Example:

buildTag("name") {
+content
}

Return

output code of the tag

Parameters

name

tag name

init

action to run at initialization

See also


A quick way to build a simple tag. Example:

buildTag("name", content)

Return

output code of the tag

Parameters

name

tag name

content

nodes to render to output code within the tag

See also


A quick way to build a simple tag. Example:

buildTag("name", "content")

Return

output code of the tag

Parameters

name

tag name

content

string content of the tag

See also