From 7c5dd6ffb85f208632f7a2018a922b5ef2083c18 Mon Sep 17 00:00:00 2001 From: anoadragon453 Date: Tue, 22 Mar 2022 16:30:53 +0000 Subject: deploy: 6b26536a52f77aa5573b4d2afedae448fac31b7c --- latest/templates.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'latest/templates.html') diff --git a/latest/templates.html b/latest/templates.html index 21d13ed7b6..eb48d66375 100644 --- a/latest/templates.html +++ b/latest/templates.html @@ -99,7 +99,7 @@ @@ -205,6 +205,10 @@ already available as part of Jinja 2:

Turns a mxc:// URL for media content into an HTTP(S) one using the homeserver's public_baseurl configuration setting as the URL's base.

Example: message.sender_avatar_url|mxc_to_http(32,32)

+
localpart_from_email(address: str) -> str
+
+

Returns the local part of an email address (e.g. alice in alice@example.com).

+

Example: user.email_address|localpart_from_email

Email templates

Below are the templates Synapse will look for when generating the content of an email: