def get_static(filename, ext): if ext == "css": return static_file(filename + "." + ext, root=DirInfo.BaseAppDir + "/public/stylesheets") if ext == "js": return static_file(filename + "." + ext, root=DirInfo.BaseAppDir + "/public/javascript") if ext == "png": return static_file(filename + "." + ext, root=DirInfo.BaseAppDir + "/public/images")
def images(filename): return static_file(filename, root='images')
def root_get(): return static_file('index.html', root='.')
def server_static(filename): return static_file(filename, root='static/')
def static(filepath): return static_file(filepath, root=cfg.static_dir)
def server_static(filepath): return bottle.static_file(filepath, root='./static/')
def default(): return static_file("aRlinks.html", root='./', mimetype='text/html')
def stylesheet(filename): return static_file(filename, root="./css/",mimetype="text/css")
def linkmagic(filename): return static_file(filename, root="./links/",mimetype="text/javascript")
def javascript(filename): return static_file(filename, root="./js/",mimetype="text/javascript")