from bottle import Bottle, get, static_file page = { 'public' :'pages/public', 'email' :'pages/email' } app = Bottle() # Default staticdir @app.get("/css/") def static(filepath): return static_file(filepath, root="./static/css") @app.get("/js/") def static(filepath): return static_file(filepath, root="./static/js") # Template staticdir: plain @app.get("/templates/plain/css/") def static(filepath): return static_file(filepath, root="./templates/plain/static/css")