<filename>app.py
from flask import Flask, request, render_template

app = Flask(__name__)

@app.route('/', methods=['GET','POST'])
def welcome():
    name=''
    food=''
    if request.method == 'POST' and 'input-name' in request.form:
        name = request.form.get('input-name')
        food = request.form.get('input-food')
    return render_template("index.html", name=name, food=food)

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

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

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

@app.route('/method', methods=['GET','POST'])
def method():
    if request.method == 'POST':
        return 'You´ve used a POST request method!'
    else:
        return 'I reckon you´re probably using a GET request'
if __name__== "__main__":
    app.run(debug=True)