from flask import Blueprint, render_template # import os bp = Blueprint("home", __name__, url_prefix="/") pages = ['intro','what-is-a-loot-box', 'crosswords', 'one-sentence-game-ideas', 'nim', 'mimic', 'unfinished-thoughts', 'the-leader', 'connect-less', 'xquisite', 'katamari', 'life-hacks', 'karaoke', 'outro'] @bp.route("/") def home(): # path = "postit/static/contents" # pages = [f.name for f in os.scandir(path) if f.is_dir()] return render_template("home.html", pages=pages)