synapse/push/mailer.py
def load_jinja2_templates(config):
    """Load the jinja2 email templates from disk

    Returns:
        (notif_template_html, notif_template_text)
    """
    logger.info("loading jinja2")

    loader = jinja2.FileSystemLoader(config.email_template_dir)
    env = jinja2.Environment(loader=loader)
    env.filters["format_ts"] = format_ts_filter
    env.filters["mxc_to_http"] = _create_mxc_to_http_filter(config)

    notif_template_html = env.get_template(
        config.email_notif_template_html
    )
    notif_template_text = env.get_template(
        config.email_notif_template_text
    )

    return notif_template_html, notif_template_text
Load the jinja2 email templates from disk

    Returns:
        (notif_template_html, notif_template_text)
    
Load the jinja2 email templates from disk
Load the jinja2 email templates from disk
def load_jinja2_templates(config):
    logger.info("loading jinja2")
    loader = jinja2.FileSystemLoader(config.email_template_dir)
    env = jinja2.Environment(loader=loader)
    env.filters["format_ts"] = format_ts_filter
    env.filters["mxc_to_http"] = _create_mxc_to_http_filter(config)
    notif_template_html = env.get_template(
        config.email_notif_template_html
    )
    notif_template_text = env.get_template(
        config.email_notif_template_text
    )
    return notif_template_html, notif_template_text
def load_jinja2_templates ( config ) : logger . info ( "loading jinja2" ) loader = jinja2 . FileSystemLoader ( config . email_template_dir ) env = jinja2 . Environment ( loader = loader ) env . filters [ "format_ts" ] = format_ts_filter env . filters [ "mxc_to_http" ] = _create_mxc_to_http_filter ( config ) notif_template_html = env . get_template ( config . email_notif_template_html ) notif_template_text = env . get_template ( config . email_notif_template_text ) return notif_template_html , notif_template_text
Load the jinja2 email templates from disk
Load the jinja2 email templates from disk
"""Load the jinja2 email templates from disk

    Returns:
        (notif_template_html, notif_template_text)
    """
None
config