You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
330 B
Python

from flask import Blueprint, render_template
import json
from . import dump
bp = Blueprint("generate", __name__, url_prefix="/generate")
@bp.route("/")
def postit():
dump.dump()
with open("postit/contents.json", "r") as f:
contents = json.load(f)
return render_template("postit.html", contents=contents)