예제 #1
0
파일: bgmm.py 프로젝트: bbaldino/BGMM
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
파일: main.py 프로젝트: timoshimmo/blogging
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
파일: web_ui.py 프로젝트: grantbacon/poebot
def static(filepath):
	return static_file(filepath, root=cfg.static_dir)
예제 #6
0
파일: fssite.py 프로젝트: HJvA/fshome
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")