 
 
 (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 trim-v
  "Middleware which removes the first element of v. It means you can write
  more asthetically pleasing handlers"
  [handler]
  (fn new-handler
    [db v]

  "Acts as an adaptor, allowing handlers to be writen as pure functions.
  The re-frame router will pass in an atom as the first parameter. This middleware
  adapts that to the value within the atom.
  If you strip away the error/efficiency checks, this middleware is just:
     (reset! app-db (handler @app-db event-vec))"
  [handler]
  (fn new-handler
