 (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 

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

  )

(def index (template (html
                      [:title "Clojure Todo"]
                      [:meta {
                              :name "viewport"
                              :content "width=device-width, initial-scale=1.0"
