Skip to content

Html

This package provides HTML rendering logic.

{
"type": "library"
}
{
"dependencies": {
"Html": "pen:///html"
}
}

An HTML node

type Node = Element | string

An HTML element

type Element {
Tag string
Attributes [Attribute]
Children [Node]
}

An HTML attribute

type Attribute {
Key string
Value string
}

No functions are defined.

No types are defined.

Render an HTML node.

\(n Node) string | error