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

  )

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

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