htmlgen ignores function return value
- From: "canburak" <canburak@xxxxxxxxx>
- Date: 30 Oct 2005 09:01:39 -0800
Hi cll,
Thanks for your time reading the following text. I am trying to use
htmlgen for output (inside AllegroServe). I couldn't print out
variables or functions returning strings. Here is a sample code which
works:
(html
(:html
(:head (:title "title"))
(:body "b" "o" "d" "y")))
output: ... body ...
I, naturally tried the following substition:
(html
(:html
(:head (:title "title"))
(:body "b" (format nil "~A" "o") "d" "y")))
output: ... bdy ...
but it didn't worked. After reading the reference[0], I saw "anything
else - everything else is simply evaluated in the normal lisp way and
the value thrown away.". After a little discuss with a friend I tried
following codes:
(let ((o "o"))(html
(:html
(:head (:title "title"))
(:body "b" o "d" "y"))))
output: ... bdy ...
(let ((o "o"))(html
(:html
(:head (:title "title"))
(:body "b" (:princ o) "d" "y"))))
output: ... bdy ...
There should be a way simpler than these. Finally, tried the example
from the reference[0] but it also didn't worked.
(:html
(:head (:title "Test Table"))
(:body
((:table border 2)
(dotimes (i count)
(html (:tr (:td (:princ i))
(:td (:princ (* i i)
output: ...<tr><td></td><td></td></tr>...
I couldn't find the missing part. I am doing all of these in Slime REPL
or writing to a file and evaluating via C-x C-e. The answers from you
will possibly make me to dislike myself as I guess that I am missing a
simple bit.
Thanks..
[0] http://opensource.franz.com/aserve/aserve-dist/doc/htmlgen.html
--
@n
.
- Follow-Ups:
- Re: htmlgen ignores function return value
- From: Bulent Murtezaoglu
- Re: htmlgen ignores function return value
- Prev by Date: Re: Lisp Logos - here is some space for your IDEAS
- Next by Date: Re: What do we mean by "Identical" ?
- Previous by thread: CLX, FFIs, and graphics
- Next by thread: Re: htmlgen ignores function return value
- Index(es):