blob: b7ce12c84e9f5501aae1e61a97c0534f0fb84537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
(define-library (boudin types)
(import (scheme base)
(scheme case-lambda)
(scheme cxr)
(scheme file)
(scheme write)
(boudin config)
(boudin util)
(srfi 1)
(srfi 152)
;; non-portable bits
(chicken file)
(chicken file posix)
(chicken pathname)
(chicken time posix)
(html-parser)
)
(export
;; pages
make-page page?
page-path page-dest page-text page-sxml page-meta
set-page-dest! set-page-text! set-page-sxml! set-page-meta!
extract-metadata page-ref page-set!
page-url page-slug page-updated
read-page write-page
;; indeces
make-index index?
index-dest index-template index-writer index-pages index-meta
set-index-dest! set-index-template! set-index-writer! set-index-pages!
set-index-meta!
index-ref index-set! index-push!
index-for-each
write-index
;; static files
static-copy
)
(include "lib/types.sls"))
|