Discussion:
loop problem
Jens Teich
2008-09-27 10:26:41 UTC
Permalink
I need this expression for creation of a macro:

WEBCAT 24 > (WITH-HTML-OUTPUT (*STANDARD-OUTPUT*)
(LOOP FOR ITEM
IN '((FMT "12") (FMT "13"))
DO (HTM (:TD ITEM))))
<td></td><td></td>
NIL

how do I have to correct the expression so that the output is

<td>12</td><td>13</td>
NIL

Jens
Leslie P. Polzer
2008-09-27 11:16:22 UTC
Permalink
Post by Jens Teich
WEBCAT 24 > (WITH-HTML-OUTPUT (*STANDARD-OUTPUT*)
(LOOP FOR ITEM
IN '((FMT "12") (FMT "13"))
DO (HTM (:TD ITEM))))
<td></td><td></td>
NIL
how do I have to correct the expression so that the output is
<td>12</td><td>13</td>
NIL
(with-html-output (*standard-output*)
(loop for item in '("12" "13")
do (htm (:td (fmt item)))))

->
<td>12</td><td>13</td>
NIL
--
LinkedIn Profile: http://www.linkedin.com/in/polzer
Xing Profile: https://www.xing.com/profile/LeslieP_Polzer
Blog: http://blog.viridian-project.de/
Jens Teich
2008-09-27 12:01:09 UTC
Permalink
Post by Jens Teich
WEBCAT 24 > (WITH-HTML-OUTPUT (*STANDARD-OUTPUT*)
(LOOP FOR ITEM
IN '((FMT "12") (FMT "13"))
DO (HTM (:TD ITEM))))
<td></td><td></td>
NIL
how do I have to correct the expression so that the output is
<td>12</td><td>13</td>
NIL
I think I found the reason. What I want does not work. Have to collect
strings in the list.

Sorry for the noise.

Jens

Loading...