Pudu programming language
Menu
API reference

Std.Html.Build.Node

1 declaration

type

Node

This declaration introduces a public type.

What it does

Builds HTML by naming a tag as a function and its attributes as methods.

`

button().class("send").submit().says("Post")

`

renders <button class="send" type="submit">Post</button>.

A node holds a tag name, its attributes in the order they were given, and

its children. Every method answers a new node, so a partly built node may

be kept and finished more than once.

Read the signature

  • This declaration has no value signature because it introduces a type or trait.

Back to Std.Html.BuildSearch related declarations