Skip to content

Instantly share code, notes, and snippets.

@rociiu
Created July 22, 2012 11:37
Show Gist options
  • Save rociiu/3159389 to your computer and use it in GitHub Desktop.
Save rociiu/3159389 to your computer and use it in GitHub Desktop.
(defn index []
(html5
[:head
[:title "Todo Index"]]
[:body
[:div {:id "todos"} [:h2 "All Todos"]]
(form-to
[:post "/create"]
(label :todo "Enter what you want to do:")
(text-field "content")
(submit-button "Submit"))]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment