RE: Using LOOP in HTML Generation Facility macro "html"
"George P.Taylor IX" <[email protected]> Wed, 2 Jul 2008 16:54:15 +0900
| Newsgroups | gmane.lisp.open-source.franz |
|---|---|
| Message-ID | <[email protected]> |
Thanks gents. I want to use the loop to retrieve/build input s-expressions. I was running into a roadblock, so I simplified the loop as much as possible, to isolate the problem. Best, George -----Original Message----- From: Greger Lindell [mailto:[email protected]] Sent: Tuesday, July 01, 2008 6:48 AM To: 'Ahmon Dancy'; 'George P.Taylor IX' Cc: [email protected] Subject: RE: Using LOOP in HTML Generation Facility macro "html" No, replace it with (html (:princ i)) to make it not give an error. Of course, the HTML itself is meaningless with a form statement and no inputs. Regards, Greger Lindell > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Ahmon Dancy > Sent: Monday, June 30, 2008 19:20 > To: George P.Taylor IX > Cc: [email protected] > Subject: Re: Using LOOP in HTML Generation Facility macro "html" > > > >> 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)). > No virus found in this incoming message. Checked by AVG. Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date: 2008/06/29 15:09