node

fun node(type: String, block: NodeBuilder.() -> Unit = {})

Appends a nested element child of the given type, built via a fresh NodeBuilder.

Parameters

block

configures the child node; defaults to an empty body.