parameters: (template_name: str, values: dict)
docstring: 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
docstring_summary: 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
docstring_tokens: 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
function: 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))
function_tokens: 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 ) )