Pudu programming language
Menu
API reference

Std.Html.Html

1 declaration

type

Html

This declaration introduces a public type.

What it does

A page, as a value.

Text and markup are different things here, and the only way to obtain the

second is to build a node. A template language solves escaping repeatedly

and gets it wrong at each new context because it lets a string become markup

by being interpolated; a string cannot become markup at all, so the failure

has no way to occur rather than being prevented by a rule to remember.

Trusted is the one exception, named so it cannot be reached by accident

and cannot be missed in review. A caller who genuinely holds markup — the

output of a document converter, a fragment from elsewhere — says so, and the

word appears where they said it.

Read the signature

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

Back to Std.HtmlSearch related declarations