diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-04-03 21:18:55 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-04-03 21:18:55 -0700 |
| commit | f29eb6f86130483ac10184ec8ab9aef0d6c6159f (patch) | |
| tree | 5bcea7103171e99c44f8d7c5c748efe9c2ce923c | |
| parent | 29ae1ce9ffeb1e747ebe832dfc54a0b57aae805a (diff) | |
| parent | 44131ffddc66305e3c7f663e98a98437cf2fb6d2 (diff) | |
Merge branch 'original' of https://github.com/pepperpepperpepper/colorpicker
| -rw-r--r-- | example1.png | bin | 0 -> 27844 bytes | |||
| -rw-r--r-- | example2.png | bin | 0 -> 2727 bytes | |||
| -rw-r--r-- | run.py | 17 |
3 files changed, 17 insertions, 0 deletions
diff --git a/example1.png b/example1.png Binary files differnew file mode 100644 index 0000000..37fa082 --- /dev/null +++ b/example1.png diff --git a/example2.png b/example2.png Binary files differnew file mode 100644 index 0000000..1761a0b --- /dev/null +++ b/example2.png @@ -0,0 +1,17 @@ +from bottle import * +import os + +pwd = os.getcwd() + +@route('/') +def server_static(): + return static_file('index.html', root=pwd ) + +from bottle import static_file +@route('/<filename>') +def server_static(filename): + return static_file(filename, root=pwd) +@route('/<filepath:path>') +def server_static(filepath): + return static_file(filepath, root=pwd) +run(host='localhost', port=8080) |
