From sebyte at smolny.plus.com Fri Jun 4 09:19:47 2010 From: sebyte at smolny.plus.com (Sebastian Tennant) Date: Fri, 04 Jun 2010 09:19:47 +0000 Subject: [cl-who-devel] empty web page References: <65B7B28D30EF43769123276DC57C5BD0@komp> Message-ID: Quoth Edi Weitz : > A standard Hunchentoot handler must return its output as a string and not > send it to *standard-output*. This should make things a little clearer: ;;; define *http-stream* as a special variable ;;; (so that it can be used anywhere, not just in function 'index') (defvar *http-stream* nil) (defun reapeat-para (stream body n) (with-html-output (stream) (dotimes (i n) (:htm (:p (str body)))))) (defun index () (with-html-output-to-string (*http-stream* nil :indent t) (:html (:head (:title "The first dissenter")) (:body (repeat-para *http-stream* "Romans go home" 100))))) Untested, but it should help. Seb -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap