Define specific parameter for root element

This commit is contained in:
Marcus Kammer 2024-04-24 08:24:27 +02:00
parent 211d68a6d9
commit 666df9f5a4
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -78,10 +78,7 @@ defaults to an empty action, \"html-form\" as name and \"post\" as method.
BODY: The body of the form, which generally includes form elements such as input
fields, checkboxes, radio buttons, etc."
`(spinneret:with-html
(:form ,@(if (null attr)
(list :action "" :name "html-form" :method "post")
attr)
,@body)))
(:form :action ,action :method ,method ,@body)))
;;; checkable