Re: htmlgen ignores function return value



>>>>> "cb" == canburak <canburak@xxxxxxxxx> writes:
[...]
cb> I couldn't find the missing part. I am doing all of these in
cb> Slime REPL or writing to a file and evaluating via C-x
cb> C-e. The answers from you will possibly make me to dislike
cb> myself as I guess that I am missing a simple bit.

Hmm, dunno, I think you can keep liking yourself. I don't use that
package, but it seems to me what you are is that there's implicit stream
for the output, namely net.html.generator:*HTML-STREAM*. So using
the document you provided the link to, I came up with the hints
below that might be helpful:

;;badly formatted sorry
CL-USER> net.html.generator:*HTML-STREAM*
NIL
CL-USER> (net.html.generator:html (:html
(:head (:title "title"))
(:body "b" (:princ "o") "d" "y")))
<html><head><title>title</title></head><body>bdy</body></html>
"</html>"
;;NOTE: did not work
CL-USER> (net.html.generator:html-stream *standard-output*
(net.html.generator:html
(:html
(:head (:title "title"))
(:body "b" (:princ "o") "d" "y"))))
<html><head><title>title</title></head><body>body</body></html>
"</html>"
;;NOTE: did work
cheers,

BM
.



Relevant Pages

  • Re: McSkype - other person typing thing?
    ... missing entirely if I didn't use it but I obviously use this one. ... programmer colleagues would sing the praises of the concept of ... I cannot think that an application like Skype is written in assembler! ... aware that there are challenges in writing a high level language in such a ...
    (uk.comp.sys.mac)
  • Re: Random letter colors?
    ... I think you are missing quite a lot. ... Word macros and VBA work and have a little fun writing the code. ...
    (microsoft.public.word.newusers)
  • Re: More Bad News from Iran
    ... into the street and beaten by an angry mob for writing.. ... :> See, here's what you're missing, Matthew. ...
    (rec.sport.football.college)
  • Re: Life of famous mathematicians..
    ... history in the 15th century and reduce it to western history. ... we weren't discussing writing; ... If you think the list is missing some important mathematicians, ... Just saying it is missing some people but not saying who they are ...
    (sci.math)
  • Re: Is this TZ playfield proto ?
    ... looks like an early production since you have writing on your mini ... no 3rd mag and also missing the proto plastic that is for the ...
    (rec.games.pinball)