aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-22 19:40:13 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-22 19:40:13 +0100
commit8f9666a32a4bc5b9bf7350212eadb5cfd9bbe41e (patch)
treeba5c248fc4937ecac3950c807d1a5ccf5bfade8b /module/entry-points
parentBegin changing how html calls work. (diff)
downloadcalp-8f9666a32a4bc5b9bf7350212eadb5cfd9bbe41e.tar.gz
calp-8f9666a32a4bc5b9bf7350212eadb5cfd9bbe41e.tar.xz
Start work on week-by-week html.
Diffstat (limited to 'module/entry-points')
-rw-r--r--module/entry-points/html.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm
index d5f21233..6655d63a 100644
--- a/module/entry-points/html.scm
+++ b/module/entry-points/html.scm
@@ -18,7 +18,7 @@
(file (value #t) (single-char #\f))
(count (value #t))
(style (value #t) (predicate ,(lambda (v) (memv (string->symbol v)
- '(wide unchunked table)))))))
+ '(wide week unchunked table)))))))
(define (main args)
(define opts (getopt-long args opt-spec))
@@ -43,7 +43,9 @@
[(unchunked)
(html-generate calendars events start end render-calendar)]
[(wide) ; previously `chunked'
- (html-chunked-main count calendars events start)]
+ (html-chunked-main count calendars events start (date month: 1))]
+ [(week)
+ (html-chunked-main count calendars events start (date day: 7))]
[(table)
(html-table-main count calendars events start)]
[else