From f0ce1de929cc2f32fbec46fab49ca3a789a9317f Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Fri, 19 Apr 2024 20:36:09 +0200 Subject: [PATCH] Add docstring --- src/component/form.lisp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/component/form.lisp b/src/component/form.lisp index 0e4746a..71ad5b2 100644 --- a/src/component/form.lisp +++ b/src/component/form.lisp @@ -66,6 +66,13 @@ ;;; form (defmacro form ((&optional (attr nil)) &body body) + "Generates HTML form elements using Spinneret library. + +ATTR: A list of form attributes like :action, :name and :method. If not provided, +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 (listp attr) attr