|
From: | Shawn Rutledge |
Subject: | Re: [Chicken-users] more problems with macro expansion in a compiled binary |
Date: | Mon, 27 Mar 2006 00:32:00 -0700 |
OK, this is the one that renders an html preview for a wiki page being edited (called with a URL like http://localhost:8080/wiki/scripts/render-view.ssp?page=wiki/src/index): <?scheme (require-extension stream-wiki) (let ([wiki-path (string-append spiffy-root-path "/" (cdr (assoc "page" (current-urlencoded-arguments))) ".wiki")]) (define inp (open-input-file wiki-path)) (display (stream->string (wiki->html (port->stream inp)))) ) ?>
[Prev in Thread] | Current Thread | [Next in Thread] |