Re: Using LOOP in HTML Generation Facility macro "html"
Ahmon Dancy <[email protected]> Mon, 30 Jun 2008 10:19:46 -0700
| Newsgroups | gmane.lisp.open-source.franz |
|---|---|
| Message-ID | <29676.1214846386@dancy> |
>> However, when I try to use a loop to iterate over a set, I get no output to >> a browser. >> >> (publish :path "/testform2" >> :content-type "text/html" >> :function >> #'(lambda (req ent) >> (with-http-response (req ent) >> (with-http-body (req ent) >> (html (:html >> (:head (:title "Test Form 2")) >> (:body >> ((:form :action "testform2") >> >> (loop for i from 1 to 10 >> do (:princ i)) >> >> )))))))) Replace (:princ i) with (:html (:princ i)).