node

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

Sets the root to a node of the given type, built via NodeBuilder.

Parameters

block

configures the root node; defaults to an empty body.