User:Pedro Sá Couto/TW/Covers: Difference between revisions

From XPUB & Lens-Based wiki
(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">
Route code goes here
# 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 03: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)