   (fn 
     [_ _]
     {:todos   (sorted-map)
-     :showing :all}
-    #_(merge db initial-db)))
+     :showing :all}))
 
 (register-pure-handler
   :set-showing
-  (comp undoable trim-v)     ;; middleware
+  trim-v
   (fn
     [db [filter-kw]]
     (assoc db :showing filter-kw)))

;; change example.html to todo.html
;; add middleware to save to local storage - beware using
;; check that (path )  does an identity test before swaping back in
;; add apply-vector middleware

;; -- Helpers -------------

(defn next-id
  [todos]
  (if (empty? todos)
    0
    (inc (apply max (keys todos)))))  ;; hillariously inefficient, but yeah


;; -- Middleware -------------
;;

                                   register-sub
                                   subscribe
                                   dispatch
                                   path trim-v debug]]))

;; TODOs
;; add .gitignore
