[cl-who-devel] Strange (str ...) behavior.

I have the following with cl-who-0.11.1:
(with-html-output-to-string (i) (:div :id (str "foo")))
"<divfoo id='foo'></div>" -- With Best Regards, Stas.

On Tue, 8 Jul 2008 16:33:13 +0400, "Stas Boukarev" <stassats@gmail.com> wrote:
I have the following with cl-who-0.11.1:
(with-html-output-to-string (i) (:div :id (str "foo")))
"<divfoo id='foo'></div>"
You're mixing tag content and attributes. Try this: (with-html-output-to-string (i) (:div :id "foo")) The documentation for CL-WHO is here: http://weitz.de/cl-who/#syntax Edi.

On Tue, Jul 8, 2008 at 4:36 PM, Edi Weitz <edi@agharta.de> wrote:
On Tue, 8 Jul 2008 16:33:13 +0400, "Stas Boukarev" <stassats@gmail.com> wrote:
I have the following with cl-who-0.11.1:
(with-html-output-to-string (i) (:div :id (str "foo")))
"<divfoo id='foo'></div>"
You're mixing tag content and attributes. Try this:
(with-html-output-to-string (i) (:div :id "foo"))
Ah, thanks. -- With Best Regards, Stas.
participants (2)
-
Edi Weitz
-
Stas Boukarev