到目前为止,我看到的所有示例都是这样cl-who工作的:
(with-html-output-to-string (s)
(:HTML (:HEAD (:TITLE "hello")) (:BODY (:DIV "world"))))
哪个工作正常。但是,我想使用with-html-output-to-string变量,而不是硬编码的 html 树;如果*p*有(:HTML (:HEAD (:TITLE "hello")) (:BODY (:DIV "world"))),我会这样做
(with-html-output-to-string (s)
*p*)
结果我得到""了。我想作为with-html-output-to-string一个宏,它的最后一个参数永远不会被评估。有什么办法可以解决这个问题吗?