aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-21 16:17:28 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-22 22:58:30 +0100
commitd00fea566004e67161ee45246b239fff5d416b0e (patch)
tree5641c0c0d0e78b046b6045ed2440512f12259560 /module/calp/html/view/calendar.scm
parentComplete rewrite of use2dot (diff)
downloadcalp-d00fea566004e67161ee45246b239fff5d416b0e.tar.gz
calp-d00fea566004e67161ee45246b239fff5d416b0e.tar.xz
Cleanup modules.
Primarly this moves all vcompenent input and output code to clearly labeled modules, instead of being spread out. At the same time it also removes a handfull of unused procedures.
Diffstat (limited to 'module/calp/html/view/calendar.scm')
-rw-r--r--module/calp/html/view/calendar.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/calp/html/view/calendar.scm b/module/calp/html/view/calendar.scm
index aa311fcb..64fafb3d 100644
--- a/module/calp/html/view/calendar.scm
+++ b/module/calp/html/view/calendar.scm
@@ -3,8 +3,6 @@
:use-module (vcomponent)
:use-module ((vcomponent datetime)
:select (events-between))
- :use-module ((vcomponent build)
- :select (vcalendar vevent))
:use-module (datetime)
:use-module (calp html components)
:use-module ((calp html vcomponent)
@@ -26,7 +24,7 @@
:use-module (srfi srfi-41 util)
:use-module ((vcomponent recurrence) :select (repeating? generate-recurrence-set))
- :use-module ((vcomponent group)
+ :use-module ((vcomponent util group)
:select (group-stream get-groups-between))
:use-module ((base64) :select (base64encode))
)
@@ -406,6 +404,6 @@ window.default_calendar='~a';"
;; rendered as xcal.
(div (@ (style "display:none !important;")
(id "xcal-data"))
- ,((@ (vcomponent xcal output) ns-wrap)
- (map (@ (vcomponent xcal output) vcomponent->sxcal)
+ ,((@ (vcomponent formats xcal output) ns-wrap)
+ (map (@ (vcomponent formats xcal output) vcomponent->sxcal)
(append regular repeating)))))))))