Add form macro
This commit is contained in:
parent
bf8cb826bb
commit
4cddc06554
1 changed files with 9 additions and 0 deletions
|
@ -63,6 +63,15 @@
|
|||
|
||||
(in-package :dev.metalisp.sbt/component/form)
|
||||
|
||||
;;; form
|
||||
|
||||
(defmacro form ((&optional (attr nil)) &body body)
|
||||
`(spinneret:with-html
|
||||
(:form ,@(if (listp attr)
|
||||
attr
|
||||
(list :action "" :name "html-form" :method "post"))
|
||||
(:fieldset ,@body))))
|
||||
|
||||
;;; checkable
|
||||
|
||||
(defvar checkable-elements
|
||||
|
|
Loading…
Add table
Reference in a new issue