
29 Sep
2008
29 Sep
'08
3:47 a.m.
What if I need to use format to generate the value, which is where this use case originally came from?
(let ((userid 46)) (with-html-output (*standard-output*) (:a :id (fmt "user-~A" userid))))
(:a :id (format nil "user-~A" userid)) Attributes can contain any Lisp expression. If you want to make sure the user ID is escaped: (:a :id (escape-string-minimal-plus-quotes (format nil "user-~A" userid)))