from flask import Flask, render_template

app = Flask(__name__)


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


@app.route('/<name>')
def name(name):
    return render_template('home.html', name=name)

from flask import Flask, render_template

app = Flask(__name__)


@app.route('/')
@app.route('/<name>')
def home(name=None):
    return render_template('home.html', name=name)

Improve hello world