Thanks for sharing, I will be trying out your lib. I am doing some web
thing.

Emeka

On Fri, Aug 13, 2010 at 10:11 AM, Saul Hazledine <shaz...@gmail.com> wrote:

> Form-dot-clj is library for handling the display and validation of
> forms. It Supports HTML5 forms, javascript validation and plain HTML.
> It should work with most methods of generating HTML.
>
> http://github.com/alienscience/form-dot-clj
>
> In the last 10 minutes I have also found a library called "pour" that
> works in a similar way.
>
> http://github.com/Kaali/pour
>
> Form-dot-clj example:
>
> (def-field username
>  [:maxlength 20]
>  [:pattern "[A-Za-z0-9]+" "Only alphanumeric characters please"])
>
> (def-field email-address
>  [:email "Sorry, that style of email address is not supported"])
>
> (def-form example
>  {:size 20 :required "Please fill this in"}
>  :username (textbox username)
>  :email    (textbox email-address))
>
> ;; Use the following function to show the form when generating html
> (show-controls example)
>
> ;; Use the following function to validate a post of this form
> (on-post example params success-fn failure-fn)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to