User:Pedro Sá Couto/TW/Covers: Difference between revisions
< User:Pedro Sá Couto | TW
(Created page with "=WHY?= Small text on why, and what happens. =PREVIEW= ====Printscreen from ''https://hub.xpub.nl/watermark/covers''==== <gallery> File:producedwatermark.png </gallery> ====...") |
|||
Line 12: | Line 12: | ||
<source lang="python"> | <source lang="python"> | ||
# TOR BROWSER | |||
@app.route("/covers") | |||
def covers(): | |||
covers = os.listdir(os.path.join(app.static_folder, "covers")) | |||
return render_template("public/covers.html", covers=covers) | |||
</source> | </source> |
Revision as of 02:08, 16 June 2020
WHY?
Small text on why, and what happens.
PREVIEW
Printscreen from https://hub.xpub.nl/watermark/covers
Python View
# TOR BROWSER
@app.route("/covers")
def covers():
covers = os.listdir(os.path.join(app.static_folder, "covers"))
return render_template("public/covers.html", covers=covers)