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.

23 lines
377 B
Python

from flask import Blueprint, render_template, send_from_directory
import json
from . import dump
import os
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)