from flask import Flask, render_template
application = Flask(__name__)

def read_file(path):
    text = ""
    try:
      with open(path, "r") as f:
          text = f.read().splitlines()
    except:
        text = ["nothing found"]
    print(text)
    return text

@application.route('/')
def hello_world():
    text =  read_file('storage/hello.txt')
    return render_template('hello.html', body=text)

if __name__ == "__main__":
    application.run()
