Skip to main content

Module email_layouts

Module email_layouts 

Source
Expand description

The HTML shells outgoing emails are wrapped in. See email_processor::wrap_in_layout.

Structs§

EmailLayout
A configured shell, as opposed to the default bundled in the code.
ResolvedLayout
The shell an email is rendered with and the colours its buttons get: a live layout, or the bundled default.

Functions§

find_for_language
The shell for an email in language (a BCP 47 tag such as “fi” or “fi-FI”): the exact match, else the match on its primary subtag, else the language-less shell. Case-insensitive. None means the bundled default applies.
get_all_live
Every live shell, at most one per language. Pick one for an email with find_for_language.