summaryrefslogtreecommitdiff
path: root/tissue/tissue.scm
diff options
context:
space:
mode:
authorArun Isaac2022-12-25 14:45:22 +0000
committerArun Isaac2022-12-25 23:33:04 +0000
commit38fb87bb4e34d88bc9f07e53a2e000b9eca88aac (patch)
tree2412e1dc42e7ab03a240da3457fc959da547aa17 /tissue/tissue.scm
parent3304bdae6d3df5ec0dd5b737743cbd2109d50423 (diff)
downloadtissue-38fb87bb4e34d88bc9f07e53a2e000b9eca88aac.tar.gz
tissue-38fb87bb4e34d88bc9f07e53a2e000b9eca88aac.tar.lz
tissue-38fb87bb4e34d88bc9f07e53a2e000b9eca88aac.zip
web: Do not pass project configuration to theme.
Parameters from the project configuration may be needed by the theme. But, these parameters should not passed as explicit parameters to the generic function of the theme. Instead, they should be passed implicitly through the lexical context of the generic methods. * tissue/web/server.scm (search-handler): Do not pass project to search renderer. * tissue/web/themes/default.scm: Do not import (tissue tissue). (default-theme): New public function. (make-head-renderer): New function. (render-sxml): Make private. Remove project parameter from all generic methods. * tissue/tissue.scm (tissue-configuration): Set default value of web-search-renderer to (default-theme) instead of render-sxml.
Diffstat (limited to 'tissue/tissue.scm')
-rw-r--r--tissue/tissue.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tissue/tissue.scm b/tissue/tissue.scm
index 2e901d2..fed9fe3 100644
--- a/tissue/tissue.scm
+++ b/tissue/tissue.scm
@@ -104,7 +104,7 @@ directory they are in."
(define-lazy (tissue-configuration #:key project (aliases '()) (indexed-documents '())
web-css
- (web-search-renderer render-sxml)
+ (web-search-renderer (default-theme))
(web-files '()))
"Construct a <tissue-configuration> object. All arguments are
evaluated lazily.