Пример #1
0
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")
Пример #2
0
def images(filename):
        return static_file(filename, root='images')
Пример #3
0
def root_get():
    return static_file('index.html', root='.')
Пример #4
0
def server_static(filename):
    return static_file(filename, root='static/')
Пример #5
0
def static(filepath):
	return static_file(filepath, root=cfg.static_dir)
Пример #6
0
def server_static(filepath):
    return bottle.static_file(filepath, root='./static/')
Пример #7
0
def root_get():
    return static_file('index.html', root='.')
Пример #8
0
def server_static(filename):
    return static_file(filename, root='static/')
Пример #9
0
Файл: app.py Проект: dexta/jabol
def default():
	return static_file("aRlinks.html", root='./', mimetype='text/html')
Пример #10
0
Файл: app.py Проект: dexta/jabol
def stylesheet(filename):
	return static_file(filename, root="./css/",mimetype="text/css")
Пример #11
0
Файл: app.py Проект: dexta/jabol
def linkmagic(filename):
	return static_file(filename, root="./links/",mimetype="text/javascript")
Пример #12
0
Файл: app.py Проект: dexta/jabol
def javascript(filename):
	return static_file(filename, root="./js/",mimetype="text/javascript")