- Fix HTML rendering in emails (triple braces for raw HTML in base template) - Add missing email content templates (project-updates, implementation-notes, governance-discussions) - Simplify SMTP port detection to respect .env configuration - Exclude email-templates from CSP validation (inline styles required for email clients) - Restore EMAIL_FROM to newsletter@agenticgovernance.digital All templates now exist, emails render correctly, and ProtonBridge integration is complete. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| base-template.html | ||
| governance-discussions-content.html | ||
| implementation-notes-content.html | ||
| project-updates-content.html | ||
| README.md | ||
| research-updates-content.html | ||
| TEMPLATE_SPECS.md | ||
Email Templates for Newsletter Tiers
This directory contains HTML email templates for the four newsletter subscription tiers:
- research-updates.html - Monthly research insights (scholarly audience)
- implementation-notes.html - Bi-weekly implementation guidance (practitioners)
- governance-discussions.html - Sporadic values/governance topics (stakeholders)
- project-updates.html - Quarterly project milestones (general audience)
Template Variables
All templates use Mustache-style {{variables}} for dynamic content:
{{name}}- Subscriber name{{unsubscribe_link}}- Unsubscribe URL{{preferences_link}}- Preferences management URL{{website_link}}- https://agenticgovernance.digital{{docs_link}}- https://agenticgovernance.digital/docs.html{{github_link}}- https://github.com/AgenticGovernance/tractatus-framework- Content-specific variables documented in each template
Usage
Templates are loaded by the newsletter admin UI and processed with a template engine (e.g., Handlebars, Mustache) before sending via email service.
Design Principles
- Inline CSS for email client compatibility
- Responsive design (mobile-friendly)
- Accessible (semantic HTML, sufficient contrast)
- Brand-consistent (blue gradient header, clean typography)
- Clear CTA buttons with good hit targets
- Unsubscribe link always visible in footer
Template Usage
Base Template (base-template.html)
The base template provides the outer HTML structure with header, footer, and styling. It uses these placeholders:
{{email_title}}- Email subject (for