html — Logtalk 3.100.1

category

# `html`

HTML generation.

Availability:
`logtalk_load(html(loader))`
Author: Paul Brown and Paulo Moura
Version: 0:3:0
Date: 2021-03-30
Compilation flags:
`static`
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)

## Public predicates

### `generate/2`

Generates HTML content using the representation specified in the first argument (`stream(Stream)` or `file(Path)`) for the term in the second argument.

Compilation flags:
`static`
Template:
`generate(Sink,Term)`
Mode and number of proofs:
`generate(+compound,++term)` - `one_or_error`

### `void_element/1`

Enumerates, by backtracking, all void elements.

Compilation flags:
`static`
Template:
`void_element(Element)`
Mode and number of proofs:
`void_element(?atom)` - `zero_or_more`

### `normal_element/2`

Enumerates, by backtracking, all normal elements. The value of the `Display` argument is either `inline` or `block`.

Compilation flags:
`static`
Template:
`normal_element(Element,Display)`
Mode and number of proofs:
`normal_element(?atom,?atom)` - `zero_or_more`

## Protected predicates

(none)

## Private predicates

### `doctype/1`

Doctype text.

Compilation flags:
`static`
Template:
`doctype(DocType)`
Mode and number of proofs:
`doctype(?atom)` - `one`

## Operators

(none)