racket/collects/meta/web/stubs/dirlist.rkt
Eli Barzilay ca3b27b810 Allow #:part-of to use symbolic names, add it to a bunch of pages.
(Using a symbolic name makes it easy to use without worrying about
circular dependencies.)
2010-06-16 16:49:02 -04:00

18 lines
709 B
Racket

#lang at-exp s-exp "../common.rkt"
;; This stub is to generate fancy directory listings with the Racket style
(require (prefix-in dnld: (only-in "../download/shared.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))])