Skip to content

Instantly share code, notes, and snippets.

@rociiu
Created July 22, 2012 11:37

Revisions

  1. rociiu created this gist Jul 22, 2012.
    11 changes: 11 additions & 0 deletions gistfile1.clj
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    (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"))]))