Blocking POST handler for file submission.
    Runs snort on supplied file and returns results as rendered html.

def submit_and_render():
    """
    Blocking POST handler for file submission.
    Runs snort on supplied file and returns results as rendered html.
    """
    data = request.files.file
    template = env.get_template("results.html")
    if not data:
        pass
    results = analyse_pcap(data.file, data.filename)
    results.update(base)
    return template.render(results)