themes-scifi-clean/email_wrapper.go
Alex Dunmow 96b87b3e81 initial: theme plugin scifi-clean
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/scifi-clean.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:43 +08:00

17 lines
453 B
Go

package main
import (
"bytes"
"context"
"git.dev.alexdunmow.com/block/core/templates"
)
// ScifiEmailWrapper wraps body content in a branded Sci-Fi Clean email shell:
// 600px white card, hairline border, mono callsign top-right, instrument footer.
func ScifiEmailWrapper(body string, emailCtx templates.EmailContext) string {
var buf bytes.Buffer
_ = scifiEmailTemplate(emailCtx, body).Render(context.Background(), &buf)
return buf.String()
}