
from flask import Blueprint, render_template
blueprint = Blueprint("example", __name__)
@blueprint.route("/")
def home():
return render_template("home.html")
@blueprint.route("/about")
def about():
return render_template("about.html")
# register blueprint with the app
app = Flask(__name__)
app.register_blueprint(blueprint)
if __name__ == "__main__":
app.run()


