Idris2Doc : Text.Html.Runtime

Text.Html.Runtime

(source)
Runtime HTML elements constructors without "either_" prefix.

Use this flavour if you want all test validation checks to be carried out
carried out at runtime.

All those constructors return an `Either` type where the:

- `Left` value is a message in case of error; and
- the `Right` value a list with, as single item, the resulting element.

Reexports

import public Data.Either
import public Text.Html.Attributes
import public Text.Html.Attributes.Types
import public Text.Html.Attributes.Validation
import public Text.Html.Elements
import public Text.Html.Elements.NoAttr
import public Text.Html.Elements.Runtime
import public Text.Html.Elements.Types
import public Text.Html.Elements.Validation
import public Text.Html.Runtime.NoAttr
import public Text.Html.Types
import public Text.Html.Utils
import public Text.Html.Values

Definitions

plainText : String -> Either String (List Element)
  Plain text which can be used inside a HTML element.

Note: HTML code is escaped.

Totality: total
Visibility: export
scriptContent : String -> Either String (List Element)
  Script content which can be used inside a **script** element.

Note: the script code is escaped.

Totality: total
Visibility: export
styleContent : String -> Either String (List Element)
  CSS content which can be used inside a **style** element.

Note: the CSS code is escaped.

Totality: total
Visibility: public export
fromString : String -> Either String (List Element)
  Alias for plain text allowing to use standard strings.

Totality: total
Visibility: export
html5 : List Attribute -> Either String (List Element) -> Either String Html
  Both a doctype preambule and a **html** element.

Totality: total
Visibility: export
title : List Attribute -> NonWhitespace -> Either String (List Element)
  A **title** element.

Totality: total
Visibility: export