From fdd3b103bb209045123693cd60149b951c7b2be8 Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Fri, 29 Nov 2024 13:24:16 +0100 Subject: rewritten the source of the application --- public/templates/live_preview.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 public/templates/live_preview.py (limited to 'public/templates/live_preview.py') diff --git a/public/templates/live_preview.py b/public/templates/live_preview.py new file mode 100644 index 0000000..e753fc6 --- /dev/null +++ b/public/templates/live_preview.py @@ -0,0 +1,14 @@ +from livereload import Server + +server = Server() +# Watch HTML file +server.watch('index.html') +# Watch CSS files +server.watch('static/styles.css') +# Watch JavaScript files +server.watch('static/main.mjs') +# Watch other files if needed +server.watch('page/*') # Watch everything in the page folder + +# Serve the current directory +server.serve(root='.') -- cgit v1.2.3-70-g09d2