racket/collects/meta/web/stubs/dirlist.rkt
Eli Barzilay 064a914fb2 Complete set of mailman template files.
This covers all of the html files in mailman's template directory, and
we should have a consistent look for all pages.  (Including archived
messages.)  Also tweak the front page to have a link to the mailman
"listinfo" page with the complete list of the hosted mailing lists.
2011-12-28 21:07:25 -05:00

20 lines
717 B
Racket

#lang meta/web
;; This stub is to generate fancy directory listings with the Racket style
(require (prefix-in dnld: (only-in "../download/resources.rkt" the-resources)))
(define-context "stubs/dirlist" #:resources dnld:the-resources)
(define header+footer
(lazy (regexp-split #rx"{{{BODY}}}"
(xml->string @page[#:id 'browse-downloads
#:html-only #t
#:part-of 'download
"{{{BODY}}}"]))))
(define header
@plain[#:file "header.html" #:newline #f (car (force header+footer))])
(define footer
@plain[#:file "footer.html" #:newline #f (cadr (force header+footer))])