Skip to content

Instantly share code, notes, and snippets.

@felideon
Created January 18, 2010 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felideon/279848 to your computer and use it in GitHub Desktop.
Save felideon/279848 to your computer and use it in GitHub Desktop.
(defmethod render ((form form-component))
(<:form :method "post" :action "mailto:felideon+blog@gmail.com"
(<:as-html "Name: ") (<:text :name "Name") (<:br)
(<:as-html "Address: ") (<:text :name "Address") (<:br)
(<:as-html "Phone: ") (<:text :name "Phone") (<:br)
(<:p) (render (make-instance 'products-dropdown))
(<:p) (<:submit :value "Place Order")))
(defmethod render ((products products-dropdown))
(<:select :name "Product"
(<:option :value "PCL" "Practical Common Lisp")
(<:option :value "C@W" "Coders At Work")
(<:option :value "OOPCLOS"
"OOP in Common Lisp: A Programmer's Guide to CLOS")
(<:option :value "AMOP" "The Art of the Metaobject Protocol")
(<:option :value "GENTLE"
"Common Lisp: A Gentle Introduction to Symbolic Computation")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment