
Let me specify further my question. if i do: (with-html-output (*standard-output*) (:body (:p (str (fn)))) then the generated html code is correct but the return string is not complete: <body><p>text</p></body> "</p></body>" Thus if i publish this function the web page is blank. If i do the same with with-html-output-to-string however, i get the correct string and the published webpage is displayed correctly: "<body><p>text</p></body>" (the code is only a snippet of the web page) Does that mean that one should use only with-html-output-to-string for publishing or is there something wrong with the way i am embedding the lisp code? Thanks Matus On Thu, Jul 28, 2011 at 9:12 AM, Matus Kmit <simply.nitaai@gmail.com> wrote:
Hello
i just starting working with cl-who and i have one very basic question:
How does one properly embed and evaluate lisp code inside the tag body?
Let's say i have a function "fn" which returns a string and i want to embed its value in a tag, like:
(: p (fn)) -> that does not work.
Thanks for help Matus