#!/usr/bin/python2.7 #static routes #{{{ @route('/im/') def server_static(filename): return static_file(filename, root='frontend/im/') @route('/im') def server_static(): return static_file("index.html", root='frontend/im/') @route('/imgrid') def server_static(): return static_file("index.html", root='frontend/imgrid/') @route('/imgradient') def server_static(): return static_file("index.html", root='frontend/imgradient/') @route('/imlandscape') def server_static(): return static_file("index.html", root='frontend/imlandscape/') @route('/impattern') def server_static(): return static_file("index.html", root='frontend/impattern/') @route('/imbreak') def server_static(): return static_file("index.html", root='frontend/imbreak/') @route('/') def server_static(): return static_file("index.html", root='frontend/im/') @route('/css/') def server_static(filename): return static_file(filename, root='frontend/css/') @route('/js/') def server_static(filename): return static_file(filename, root='frontend/js/') @route('/img/') def server_static(filename): return static_file(filename, root='frontend/img/') #}}} #run(host='0.0.0.0', port=8999, debug=True)