Closed K1D77A closed 3 years ago
The problem here is that Spinneret interprets strings in places that look like function calls as if they were calls to format
. So when it sees
(%html-left-bordered ("oof")
It expands ("oof")
into (format "oof")
.
Note that if you substitute a symbol for the string it works:
(with-html-string
(%html-new-block (#:|oof| "bog") (:p "boof")))
=>
"<div class=functionality-block id=oof-div>
<h2>bog</h2>
<div class=pre-body>
<div class=left-bordered id=oof-bordered>
<p>boof
</div>
<div class=post-body>
</div>
</div>
</div>"
macroexpansion
executing
Is it possible to modify with-html so that its possible to compose forms with defmacro?
Thanks.