Download data/repos/cl-forms/src/fields/hidden.lisp from j14i/cl-ds: direct link, hf CLI and curl.
- Browser
- Download file 487 Bytes
-
https://huggingface.co/j14i/cl-ds/resolve/main/data/repos/cl-forms/src/fields/hidden.lisp
- Command line
-
hf download hf://j14i/cl-ds/data/repos/cl-forms/src/fields/hidden.lisp
-
curl -L -o hidden.lisp https://huggingface.co/j14i/cl-ds/resolve/main/data/repos/cl-forms/src/fields/hidden.lisp
487 Bytes
| (in-package :forms) | |
| (defclass hidden-form-field (form-field) | |
| () | |
| (:documentation "A hidden form field")) | |
| (defmethod field-read-from-request ((field hidden-form-field) form parameters) | |
| (setf (field-value field) | |
| (cdr (assoc (field-request-name field form) parameters :test #'string=)))) | |
| (defmethod make-form-field ((field-type (eql :hidden)) &rest args) | |
| (apply #'make-instance 'hidden-form-field args)) | |
| (defmethod field-render-label-p ((field hidden-form-field)) | |
| nil) | |