from flask import Blueprint, render_template home_blueprint = Blueprint('home', __name__, url_prefix='/') @home_blueprint.route('') def home(): return render_template('index.html') @home_blueprint.route('/hello/<name>') def hello(name: str): return "Hello, " + name