Discussion:
Strange (str ...) behavior.
Stas Boukarev
2008-07-08 12:33:13 UTC
Permalink
(with-html-output-to-string (i)
(:div :id (str "foo")))

"<divfoo id='foo'></div>"
--
With Best Regards, Stas.
Edi Weitz
2008-07-08 12:36:00 UTC
Permalink
Post by Stas Boukarev
(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.
Stas Boukarev
2008-07-08 12:46:40 UTC
Permalink
Post by Stas Boukarev
(with-html-output-to-string (i)
(:div :id (str "foo")))
"<divfoo id='foo'></div>"
(with-html-output-to-string (i)
(:div :id "foo"))
Ah, thanks.
--
With Best Regards, Stas.
Loading...