Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously an unversioned directory inside ~/src/blockninja-themes/earthen. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
18 lines
418 B
Go
18 lines
418 B
Go
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()
|
|
}
|