diff options
Diffstat (limited to 'module/output')
-rw-r--r-- | module/output/html.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/module/output/html.scm b/module/output/html.scm index bd28b390..6b2f8b6e 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -401,6 +401,14 @@ (define-public (html-chunked-main count calendars events start-date) + ;; TODO This still doesn't account for PWD, file existing but is of + ;; wrong type, html directory existing but static symlink missing, + ;; static being a different file type, and probably something else + ;; i'm missing. + (unless (file-exists? "./html") + (mkdir "./html") + (symlink "../static" "./html/static")) + ;; NOTE Something here isn't thread safe. ;; TODO make it thread safe (stream-for-each |