Add docstring to process choice
This commit is contained in:
parent
0b9fe00e9f
commit
1af2064c00
1 changed files with 7 additions and 0 deletions
|
@ -148,6 +148,13 @@ Returns:
|
|||
(funcall (choose-input-form type) type group item))
|
||||
|
||||
(defmacro process-choice (group choice)
|
||||
"Generate HTML list elements based on the CHOICE specification for a question group.
|
||||
|
||||
GROUP is the name attribute for the HTML form elements and CHOICE is the list that
|
||||
defines the input types and values for those form elements.
|
||||
|
||||
Example:
|
||||
(process-choice \"hobbies\" '(:radio \"Reading\" \"Swimming\" \"Coding\"))"
|
||||
(unless (choicep choice)
|
||||
(error "Invalid question format: ~a" choice))
|
||||
(multiple-value-bind (type values)
|
||||
|
|
Loading…
Add table
Reference in a new issue