racket/collects/meta/web/stubs/dirlist.rkt
Eli Barzilay 667c682c2b Better filename conventions: "main.rkt"s that would just require the
necessary modules are now "all.rkt"s; "shard.rkt"s turn to
"resources.rkt".

Also, "navbar.rkt" changes to "all.rkt", since it was doing the same
thing (in addition to setting the navbar).
2010-10-26 16:09:16 -04:00

18 lines
692 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
(delay (regexp-split #rx"{{{BODY}}}"
(xml->string @page[#:id 'browse-downloads
#:html-only #t
#:part-of 'download
"{{{BODY}}}"]))))
(define header @plain[#:file "header.html" (car (force header+footer))])
(define footer @plain[#:file "footer.html" (cadr (force header+footer))])