in webdev mode make page auto-refresh every 3 seconds

This commit is contained in:
holger krekel
2023-12-08 14:30:41 +01:00
parent 931305d454
commit 9531d62f57
2 changed files with 4 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ def main():
reporoot = path.joinpath("../../../").resolve()
inipath = reporoot.joinpath("chatmail.ini")
config = get_ini_settings(chatmail_domain, inipath)
config["webdev"] = True
www_path = reporoot.joinpath("www")
src_path = www_path.joinpath("src")
stats = None

View File

@@ -2,6 +2,9 @@
<html>
<head>
<meta charset="utf-8" />
{% if config.webdev %}
<meta http-equiv="refresh" content="3">
{% endif %}
<title>{{ config.mail_domain }} {{ pagename }}</title>
<link rel="stylesheet" href="./water.css">
</head>