   (for [task tasks]
     (html
      [:div 
-      [:h3 (task :task)]
+      [:h3 (task "task")]
       
-      (if (task :done?)
+      (if (task "done?")
         [:button.btn.btn-success
          [:span.glyphicon.glyphicon-ok-sign]
         ]

                       [:div.starter-template
                        [:h1 "Clojure Todo"]
                        [:p.lead "All tasks:"]
                        (task-template todos)
                        (form-to {:class "form-inline" :role "form"} [:task "/post"]
                                 [:div.form-group
                                  (label "task" "Task:")

(require 'hiccup.form)
(require 'fleetdb.client)

(def client (connect))

(def todos [
            {:task "Task 1" :done? false }
            {:task "Task 2" :done? true }
            {:task "Task 3" :done? false }
            ])

(defn select-all-tasks [] (client ["select" "tasks"]))

(defn template [head, body]
  (html5 
