def METHOD_NAME(channame, cldrdate, meetname, typecont):
    if typecont == "Raw":
        # if txt log, redirect to meetbot-raw
        encoded_uri = urllib.parse.quote(request.path)
        return redirect(f"{main.config['MEETBOT_RAW_URL']}/{encoded_uri}", code=302)
    if typecont not in ("Minutes", "Logs"):
        abort(404)
    meetpath = main.config["MEETING_DIR"] + request.path
    meetcont = fetch_meeting_content(meetpath)
    if not meetcont[0]:
        abort(404)
    else:
        meeting_title = re.search(main.config["RECOGNIITION_PATTERN"], meetname)
        return render_template(
            "statfile.html.j2",
            channame=channame,
            cldrdate=cldrdate,
            meetname=meeting_title.group(1),
            timetext=meeting_title.group(3),
            typecont=typecont,
            meetcont=meetcont[1],
        )