diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-16 21:45:10 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-16 21:45:10 +0200 |
commit | 6a8303b004e1976739371431aa7358c672ad7313 (patch) | |
tree | 108da54419661af1cd6edc860ec6494be61e7051 /module/web/pyload_app.py | |
parent | higher low speed time, easier way to set curl options (diff) | |
download | pyload-6a8303b004e1976739371431aa7358c672ad7313.tar.xz |
added bootstrap
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r-- | module/web/pyload_app.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 7be4975a7..04cd07cb2 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -84,6 +84,13 @@ def server_static(path): response.headers['Cache-control'] = "public" return static_file(path, root=join(PROJECT_DIR, "static")) +@route('/templates/<path:path>') +def serve_template(path): + """ Serve backbone templates """ + args = path.split("/") + args.insert(1, "backbone") + return static_file("/".join(args), root=join(PROJECT_DIR, "templates")) + @route('/favicon.ico') def favicon(): return static_file("favicon.ico", root=join(PROJECT_DIR, "static", "img")) |