package main import ( "bytes" "context" "git.dev.alexdunmow.com/block/core/templates" ) // EarthenEmailWrapper wraps body content in a botanical cream-and-moss email frame. func EarthenEmailWrapper(body string, emailCtx templates.EmailContext) string { var buf bytes.Buffer if err := earthenEmailTemplate(emailCtx, body).Render(context.Background(), &buf); err != nil { return body } return buf.String() }