Render template with variables. Returns: Tuple of (subject, html_body, text_body)
(self, **variables)
| 23 | |
| 24 | def render(self, **variables) -> tuple[str, str, str]: |
| 25 | """Render template with variables. |
| 26 | |
| 27 | Returns: |
| 28 | Tuple of (subject, html_body, text_body) |
| 29 | """ |
| 30 | subject = self.subject.format(**variables) |
| 31 | html = self.body_html.format(**variables) |
| 32 | text = self.body_text.format(**variables) |
| 33 | return subject, html, text |
| 34 | |
| 35 | |
| 36 | @dataclass |
| 37 | class LandingPageTemplate: |
nothing calls this directly
no outgoing calls
no test coverage detected