Skip to content

Instantly share code, notes, and snippets.

@felideon
Created January 20, 2010 06:02
Show Gist options
  • Save felideon/281649 to your computer and use it in GitHub Desktop.
Save felideon/281649 to your computer and use it in GitHub Desktop.
(defmethod render :around ((form form-component))
(<:form :method "post"
:action "mailto:felideon+blog@gmail.com"
(call-next-method)))
(defmethod render :before ((form form-component))
(<:h1 (<:as-html "Book Order Form")))
(defmethod render ((form form-component))
(<: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))
(defmethod render :after ((form form-component))
(<:submit :value "Place Order"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment