diff --git a/anotherTest.txt b/anotherTest.txt new file mode 100644 index 0000000..a48dca5 --- /dev/null +++ b/anotherTest.txt @@ -0,0 +1 @@ +more text diff --git a/src/main.py b/src/main.py index ddd638c..6318bd7 100644 --- a/src/main.py +++ b/src/main.py @@ -1,6 +1,7 @@ from jinja2 import Environment, FileSystemLoader from bottle import route, run import bottle +import random JINJA_ENV = Environment( @@ -15,6 +16,15 @@ def say_hi(name): 'name': name }) +@route('/image') +def show_image(): + return respond('image.html', + { + 'red': random.randint(0,255), + 'green': random.randint(0,255), + 'blue': random.randint(0,255), + }) + @route('/static/') def serve_asset(asset): diff --git a/templates/hand_sanitizer.png b/templates/hand_sanitizer.png new file mode 100644 index 0000000..72f6816 Binary files /dev/null and b/templates/hand_sanitizer.png differ diff --git a/templates/image.html b/templates/image.html new file mode 100644 index 0000000..442b911 --- /dev/null +++ b/templates/image.html @@ -0,0 +1,3 @@ + + + diff --git a/templates/image.html.py b/templates/image.html.py new file mode 100644 index 0000000..442b911 --- /dev/null +++ b/templates/image.html.py @@ -0,0 +1,3 @@ + + + diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..8e27be7 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +text