summaryrefslogtreecommitdiff
path: root/haunt.scm
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2016-01-17 12:54:39 +0100
committerrekado <rekado@elephly.net>2016-01-17 12:54:39 +0100
commit810de6e38b92c801a533e42c607737402328cb1d (patch)
tree698e3d6ba204b3109e955094d2e1544faa59b8da /haunt.scm
parent5850869f2637fe8df7f4ec08c9c4a87edec2025f (diff)
Use new skribe reader in haunt.
Diffstat (limited to 'haunt.scm')
-rw-r--r--haunt.scm18
1 files changed, 4 insertions, 14 deletions
diff --git a/haunt.scm b/haunt.scm
index 157935b..b2dd1e0 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -4,8 +4,8 @@
(srfi srfi-26) ; cut
(ice-9 ftw) ; file system
(ice-9 match) ; match-lambda
- (skribe)
(haunt reader)
+ (haunt reader skribe)
(haunt site)
(haunt asset)
(haunt post) ;post-file-name
@@ -17,19 +17,9 @@
(define skribe-reader
- (make-reader (make-file-extension-matcher "skr")
- (lambda (file-name)
- (let ((contents (load (absolute-file-name file-name) %skribe-reader)))
- (values meta contents)))))
-
-;; Create stubs for each sxml tag
-;; This is needed for the skribe to sxml conversion.
-(for-each
- (lambda (tag)
- (eval `(define (,tag . content)
- (list (quote ,tag) content))
- (current-module)))
- '(a blockquote p img h1 h2 h3 code pre strong em ul li dl dt dd))
+ (make-skribe-reader #:modules '((haunt skribe utils)
+ (haunt utils)
+ (skribe-utils))))
(define (photo-snippet post)