(template_name: str, values: dict)
Helper function to read a HTML template from disk and return it using flask's
    render_template function
    :param template_name: The template we want to load
    :return: Template as a string
Helper function to read a HTML template from disk and return it using flask's
    render_template function
    :param template_name: The template we want to load
    :return: Template as a string
Helper function to read a HTML template from disk and return it using flask s render_template function : param template_name : The template we want to load : return : Template as a string
def get_template(template_name: str, values: dict) -> str:
    """
    Helper function to read a HTML template from disk and return it using flask's
    render_template function
    :param template_name: The template we want to load
    :return: Template as a string
    """
    try:
        values["ORG_CODE"] = current_app.config["ORG_CODE"]
        values["ORG_NAME"] = current_app.config["ORG_NAME"]
        values["ORG_LOGO"] = current_app.config["ORG_LOGO"]
        values["APP_BASE_URL"] = current_app.config["APP_BASE_URL"]
        return render_template(template_name, values=values)
    except (FileNotFoundError, TypeError):
        current_app.logger.error("Unable open file {0}".format(template_name))
        raise ValueError("Unable open file {0}".format(template_name))
def get_template ( template_name : str , values : dict ) -> str : try : values [ "ORG_CODE" ] = current_app . config [ "ORG_CODE" ] values [ "ORG_NAME" ] = current_app . config [ "ORG_NAME" ] values [ "ORG_LOGO" ] = current_app . config [ "ORG_LOGO" ] values [ "APP_BASE_URL" ] = current_app . config [ "APP_BASE_URL" ] return render_template ( template_name , values = values ) except ( FileNotFoundError , TypeError ) : current_app . logger . error ( "Unable open file {0}" . format ( template_name ) ) raise ValueError ( "Unable open file {0}" . format ( template_name ) )