summaryrefslogtreecommitdiff
path: root/app.py
blob: 3d36d9967522f9444d8787b03dec6bda8ca74717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from bottle import Bottle, run, static_file
from bottle import jinja2_template as template

app = Bottle()

@app.route("/")
def hello():
    return template("index")

@app.route("/static/<filename>")
def server_static(filename):
    return static_file(filename, root="./static/")

run(app, host='localhost', port=8080)