✨ Add react-email for email templates (#2421)

This commit is contained in:
Alejandra
2026-08-10 19:59:35 +02:00
committed by GitHub
parent de53c8fd35
commit b0ccf1e80e
26 changed files with 802 additions and 166 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class EmailData:
def render_email_template(*, template_name: str, context: dict[str, Any]) -> str:
template_str = (
Path(__file__).parent / "email-templates" / "build" / template_name
Path(__file__).parent / "email-templates" / template_name
).read_text()
html_content = Template(template_str).render(context)
return html_content