25 lines
595 B
Python
25 lines
595 B
Python
from bottle import Bottle, get, static_file
|
|
|
|
page = {
|
|
'public' :'pages/public',
|
|
'email' :'pages/email'
|
|
}
|
|
|
|
app = Bottle()
|
|
|
|
# Default staticdir
|
|
|
|
@app.get("/css/<filepath:re:.*\.(css|sass|css.map)>")
|
|
def static(filepath):
|
|
return static_file(filepath, root="./static/css")
|
|
|
|
@app.get("/js/<filepath:re:.*\.(js)>")
|
|
def static(filepath):
|
|
return static_file(filepath, root="./static/js")
|
|
|
|
# Template staticdir: plain
|
|
|
|
@app.get("/templates/plain/css/<filepath:re:.*\.(css|sass|css.map)>")
|
|
def static(filepath):
|
|
return static_file(filepath, root="./templates/plain/static/css")
|