From fbogdanovic at xnet.hr Mon May 31 11:16:04 2010 From: fbogdanovic at xnet.hr (a) Date: Mon, 31 May 2010 13:16:04 +0200 Subject: [cl-who-devel] empty web page Message-ID: <65B7B28D30EF43769123276DC57C5BD0@komp> Hi. When I try to open a web page generated by cl-who I get an empty web page: ------------------------------------------------------------ (start (make-instance 'acceptor :port 8000)) (push (create-prefix-dispatcher "/index.html" 'index) *dispatch-table*) (defun index () (with-html-output (*standard-output* nil :indent t) (:html (:head (:title "Test page")) (:body (dotimes (x 10) (:htm (:p "Text")))))) ----------------------------------------------------------- and page on http://localhost:8000/index.html is empty. The source of the page is just: ---------------- -------------- Where is the problem ? If I remove dynamic code "(dotimes (x 10) ..." then it renders the page correctly. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Mon May 31 11:45:02 2010 From: edi at agharta.de (Edi Weitz) Date: Mon, 31 May 2010 13:45:02 +0200 Subject: [cl-who-devel] empty web page In-Reply-To: <65B7B28D30EF43769123276DC57C5BD0@komp> References: <65B7B28D30EF43769123276DC57C5BD0@komp> Message-ID: A standard Hunchentoot handler must return its output as a string and not send it to *standard-output*. Edi. 2010/5/31 a : > Hi. > > When I try to open a web page generated by cl-who I get an empty web page: > > ------------------------------------------------------------ > (start (make-instance 'acceptor :port 8000)) > > (push (create-prefix-dispatcher "/index.html" 'index) *dispatch-table*) > > (defun index () > ? (with-html-output (*standard-output* nil :indent t) > ??? (:html > ???? (:head > ????? (:title "Test page")) > ???? (:body > ????? (dotimes (x 10) > ??????? (:htm > ???????? (:p "Text")))))) > ----------------------------------------------------------- > and page on http://localhost:8000/index.html is empty. > The source of the page is just: > ---------------- > ? > > -------------- > > Where is the problem ? > If I remove dynamic code "(dotimes (x 10) ..." > then it renders the page correctly. > > Thanks > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel >