Skip to main content

wrap_in_layout

Function wrap_in_layout 

Source
pub fn wrap_in_layout(
    layout_html: &str,
    fields: &EmailLayoutFields<'_>,
) -> String
Expand description

Wraps a rendered body in an email shell: {{CONTENT}} gets the body as is, {{SUBJECT}}, {{PREHEADER}} and {{LANGUAGE}} their escaped values. One pass, so placeholders inside the body are never expanded.