Phase 2 Implementation: - Add RSS feed discovery links to footer (Subscribe section) - Create email templates (base-template.html, research-updates-content.html) - Add comprehensive newsletter sending implementation plan - Fix CSP check to exclude email-templates directory Email templates use inline styles for cross-client compatibility (Gmail, Outlook, Apple Mail) and are excluded from CSP checks. Next steps: Install dependencies (handlebars, @sendgrid/mail), implement EmailService, controller methods, and admin UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4.4 KiB
4.4 KiB
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