From a27a5e9370691e7e569e8730ec90a9d9aee73c47 Mon Sep 17 00:00:00 2001 From: Maxime Bloch Date: Fri, 20 Sep 2019 15:02:28 +0200 Subject: [PATCH] add a static file example --- .gitignore | 1 + watcher/static/hello.js | 3 +++ watcher/static/index.css | 3 +++ watcher/templates/index.html | 13 ++++++++----- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 watcher/static/hello.js create mode 100644 watcher/static/index.css diff --git a/.gitignore b/.gitignore index 92afa22..d69b278 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ __pycache__/ venv/ +.tern-port diff --git a/watcher/static/hello.js b/watcher/static/hello.js new file mode 100644 index 0000000..853c583 --- /dev/null +++ b/watcher/static/hello.js @@ -0,0 +1,3 @@ +function sayHello() { + alert("Hello World"); +} diff --git a/watcher/static/index.css b/watcher/static/index.css new file mode 100644 index 0000000..9fab7db --- /dev/null +++ b/watcher/static/index.css @@ -0,0 +1,3 @@ +h1 { + color: blue; +} diff --git a/watcher/templates/index.html b/watcher/templates/index.html index 407b841..eada1a5 100644 --- a/watcher/templates/index.html +++ b/watcher/templates/index.html @@ -1,7 +1,10 @@ - - - -

TEST

- + + + + + + +