initial commit

This commit is contained in:
2021-05-18 19:15:49 +02:00
commit 6f291aa47a
6 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
from flask import Flask
app = Flask(__name__)
import autoreply_editor.main
app.config.from_pyfile("config.py")

View File

@@ -0,0 +1 @@
MESSAGE_FILE = "message.txt"

9
autoreply_editor/main.py Normal file
View File

@@ -0,0 +1,9 @@
from autoreply_editor import app
from flask import render_template
@app.route("/")
def index():
with open(app.config.get("MESSAGE_FILE"), "r") as f:
content = f.read()
return render_template("index.html", content=content)

View File

@@ -0,0 +1,3 @@
<p>
Hello! {{ content }}
</p>