MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / render

Method render

modules/phishing/templates.py:25–34  ·  view source on GitHub ↗

Render template with variables. Returns: Tuple of (subject, html_body, text_body)

(self, **variables)

Source from the content-addressed store, hash-verified

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
37class LandingPageTemplate:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected