authsquare/app/config/directory.py

20 lines
448 B
Python
Raw Normal View History

from bottle import Bottle, get, static_file
page = {
'public' :'pages/public'
}
app = Bottle()
# Default staticdir
@app.get("/css/<filepath:re:.*\.(css|sass|css.map)>")
def static(filepath):
return static_file(filepath, root="./static/css")
# 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")