View Source Exzeitable.HTML.Format (Exzeitable v0.6.8)

Formatting text

Summary

Functions

If function: true, will pass the entry to the function of the same name as the entry Else just output the field This function is tested but coveralls will not register it.

The default formatter

Will output the user supplied label or fall back on the atom

Functions

field(entry, key, map)

@spec field(map(), atom(), map()) :: String.t() | {:safe, iolist()}

If function: true, will pass the entry to the function of the same name as the entry Else just output the field This function is tested but coveralls will not register it.

format_field(value)

@spec format_field(any()) :: any()

The default formatter

header(params, arg)

@spec header(
  Exzeitable.Params.t(),
  {atom(), map()}
) :: String.t()

Will output the user supplied label or fall back on the atom