clavier
cl-forms
clavier | cl-forms | |
---|---|---|
2 | 4 | |
17 | 39 | |
- | - | |
6.6 | 4.6 | |
3 months ago | 6 months ago | |
Common Lisp | Common Lisp | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
clavier
-
Form validation in Common Lisp
(defun validate-all (validators object) "Run all validators in turn. Return two values: the status (boolean), and a list of messages. Allow a keyword validator: :allow-blank. Accepts a blank value. If not blank, validate." ;; I wanted this to be part of clavier, but well. ;; https://github.com/mmontone/clavier/pull/10 (let ((messages nil) (valid t)) (loop for validator in validators if (and (eql :allow-blank validator) (str:blankp object)) return t else do (unless (symbolp validator) (multiple-value-bind (status message) (clavier:validate validator object :error-p nil) (unless status (setf valid nil)) (when message (push message messages))))) (values valid (reverse (uiop:ensure-list messages)))))
-
Favorite user input and validation library?
There's also clavier: https://github.com/mmontone/clavier (but didn't try it)
cl-forms
-
Form validation in Common Lisp
Let's say you are building many HTML forms. Doing one all manually is OK-ish, not two. You could use cl-forms (I didn't, I'm building a layer to get a form from Mito objects. If you didn't see where I'm doing it look better or stay tuned ;) ) You could do things semi-manually and use Clavier for input validation. It works like this.
-
User authentication and security in Common Lisp Webapps
As for CSRF in forms: https://github.com/mmontone/cl-forms does it.
-
An implementation of self-validating formlets for Hunchentoot + cl-who
Looks nice. See also: https://github.com/mmontone/cl-forms which even does client-side validation, and more (subforms). It has a very nice demo we can start with 1 command.
-
Are there any tutorials (or sample code) available for "weblocks quickform".
To create forms automatically, there is cl-forms: https://github.com/mmontone/cl-forms/ I tried it and it looks pretty feature full: subforms, server and even client side validation, and more that I can remember. I didn't use it "in production"©.
What are some alternatives?
duologue - High level user interaction library for Common Lisp
restas-simple-auth - Simple RESTAS-plugin for user registration and authentication
clog - CLOG - The Common Lisp Omnificent GUI
red-light-green-light - A git-centric policy management and enforcement tool designed to accelerate your CI/CD pipelines.
clasp - clasp Common Lisp environment
ironclad - A cryptographic toolkit written in Common Lisp
medley - The main repo for the Medley Interlisp project. Wiki, Issues are here. Other repositories include maiko (the VM implementation) and Interlisp.github.io (web site sources)
mito-auth - User authorization for Mito classes.
hunchentoot-auth
mito-email-auth - Helper to authenticate website's users by sending them unique code by email.