package main import ( "bytes" "context" "git.dev.alexdunmow.com/block/core/templates" ) // CorporateModernistEmailWrapper wraps body content in a 600px-wide // Corporate Modernist email. Tokens are locked to the navy-classic light // preset regardless of the active site preset, in line with ยง10 of the // spec, to maximise email-client compatibility. // // Colours are expressed via hsl() with the navy-classic HSL triples; no // hex literals appear in the source. func CorporateModernistEmailWrapper(body string, emailCtx templates.EmailContext) string { var buf bytes.Buffer _ = emailWrapperComponent(emailCtx, body).Render(context.Background(), &buf) return buf.String() }