themes-earthen/email_wrapper.go
Alex Dunmow 49401f1b41 initial: theme plugin earthen
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>
2026-06-06 14:11:27 +08:00

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()
}