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

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

@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.

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

The default formatter

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

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