RE: Using LOOP in HTML Generation Facility macro "html"

"Greger Lindell" <[email protected]> Mon, 30 Jun 2008 23:48:20 +0200
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
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)).  
>