from flask import Flask, render_template, request
app=Flask(__name__)
@app.route('/greet', methods=['POST'])
def greet():
    inputName = request.form['myName']
    ip = request.remote_addr
    #write data to file or to DB
    inputName = inputName.upper()+" hi!  Visiting from " + str(ip)
    return render_template("home.html",myName=inputName)
@app.route('/')
def home():
    
    return render_template("home.html",myName="")

@app.route('/about/')
def about():
    return render_template("about.html")

@app.route('/kara/')
def kara():
    return render_template("wright.html")

if __name__=="__main__":
    app.run(debug=True)
