From 6a8303b004e1976739371431aa7358c672ad7313 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 16 Sep 2012 21:45:10 +0200 Subject: added bootstrap --- module/web/pyload_app.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'module/web/pyload_app.py') 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/') +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")) -- cgit v1.2.3