code: def add_path_to_jinja(flask_app, path):
      
      template_dir = path
      my_loader = jinja2.ChoiceLoader([
          flask_app.jinja_loader,
          jinja2.FileSystemLoader(template_dir)
      ])
      flask_app.jinja_loader = my_loader
docs: To add path to jinja so it can be loaded
      :param flask_app:
      :param path:
      :return: