From b70b23bfcc7fd471ced3e4de2839efc55f3d3a95 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sun, 23 Jun 2024 13:07:45 +0200 Subject: [PATCH] Add docstring to macro --- src/views/sus.lisp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/sus.lisp b/src/views/sus.lisp index e29ab35..603eca8 100644 --- a/src/views/sus.lisp +++ b/src/views/sus.lisp @@ -13,10 +13,17 @@ nil) (defmacro with-form (&body body) + "Create a standardized HTML form wrapped in a
tag with a pre-defined +class and structure, using the Spinneret library. The form is designed to be +used within a web application served by Hunchentoot, utilizing common layout +and localization practices. The macro automatically sets the form’s action to +the current request URI and expects certain functions and variables to be +available in its environment for full functionality." `(spinneret:with-html (:main :id "main-content" :class "container my-5" (:p "Please fill out the following forms and press the submit button.") + ;; action is defined as hunchentoot:request-uri* function (:form :action (request-uri*) :method "post" :class (spacing :property "m" :side "y" :size 5)