Commits

Miki Tebeka committed 63e193c

No form

  • Participants
  • Parent commits 4204d95

Comments (0)

Files changed (1)

File src/biggieurl.clj

     [:body 
      [:div {:class "header"} "Hello " (user-name) " [" (header-link) "]"]
      [:h1 *title*]
-     (form-to [:post]
-       "URL: "
-       [:input {:type "text" :name "url" :size "100"}]
-       (submit-button "Shorten"))
-     (:div {:id "shortened" :class "shortened"})]))
+     "URL: " [:input {:type "text" :id "url" :size "100"}]
+     [:button {:id "shorten"} "Shorten"]
+     [:div {:id "shortened" :class "shortened"}]]))
 
 (defroutes biggieurl-routes
   (GET "/" [] (home-page))