aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/vcomponent.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/vcomponent.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/vcomponent.scm')
-rw-r--r--module/calp/html/vcomponent.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm
index 3e7cc4dc..2abf370d 100644
--- a/module/calp/html/vcomponent.scm
+++ b/module/calp/html/vcomponent.scm
@@ -1,11 +1,9 @@
(define-module (calp html vcomponent)
:use-module (calp util)
- :use-module ((calp util exceptions) :select (warning))
- :use-module (vcomponent)
:use-module (srfi srfi-1)
- :use-module (srfi srfi-26)
:use-module (srfi srfi-41)
:use-module ((rnrs io ports) :select (put-bytevector))
+ :use-module (vcomponent)
:use-module (datetime)
:use-module ((text util) :select (add-enumeration-punctuation))
:use-module ((web uri-query) :select (encode-query-parameters))
@@ -16,7 +14,6 @@
:use-module ((crypto) :select (sha256 checksum->string))
:use-module ((xdg basedir) :prefix xdg-)
:use-module ((vcomponent recurrence) :select (repeating?))
- :use-module ((vcomponent recurrence internal) :prefix #{rrule:}#)
:use-module ((vcomponent datetime output)
:select (fmt-time-span
format-description
@@ -169,7 +166,7 @@
(src ,link))))))))
;; URI
(cond ((and=> (param attach 'FMTTYPE)
- (compose (cut string= <> "image" 0 5) car))
+ (lambda (p) (string=? (car p) "image" 0 5)))
`(img (@ (class "attach")
(src ,(value attach)))))
(else `(a (@ (class "attach")
@@ -289,6 +286,7 @@
"🗎")))))))
+;; TODO possibly unused?
(define (repeat-info event)
`(div (@ (class "eventtext"))
(h2 "Upprepningar")