diff options
author | Linnnus <[email protected]> | 2024-03-20 15:28:32 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 15:29:17 +0100 |
commit | fed658657935022a489515f3cb387bd9a63c82c6 (patch) | |
tree | 71ed327f266a0db14e6343d3cc2816223f5b0334 /app.py | |
parent | db93ff98409fac1c1a3742d0f81484c985d6d55c (diff) |
Add global CSS
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -from bottle import Bottle, run +from bottle import Bottle, run, static_file from bottle import jinja2_template as template app = Bottle() @@ -7,4 +7,8 @@ app = Bottle() def hello(): return template("index") [email protected]("/static/<filename>") +def server_static(filename): + return static_file(filename, root="./static/") + run(app, host='localhost', port=8080) |