 
 
 (defn path
-  "Supplies a sub-tree of `app-db` to the handler.
+  "Supplies a sub-tree of `db` to the handler. A narrowed view.
   Assumes \"pure\" is in the middleware pipeline prior.
-  Grafts the result back into app-db."
+  Grafts the result back into db."
   [p]
   (fn middleware
     [handler]



(defn debug
  "Middleware which logs (console) debug information for each event.
  Includes a clojure.data/diff of the db, before vs after, showing changes."
  [handler]
  (fn new-handler



(defn trim-v
  "Middleware which removes the first element of v. Its use means you can write
  more asthetically pleasing handlers.
  Your handlers will look like this:
      (defn my-handler
        [db [x y z]]    ;; <-- instead of [_ x y z]
        ....)
  "
  [handler]
  (fn new-handler
    [db v]
