              [less :as less]
              [memory-cache :as mem]
              [utils :as utils]
-             [tracker :as tracker]]
+             [tracker :as t]]
             [ring.util
              [response :as r]
              [mime-type :as mime]]))

  (let [path-prefix (-> request :twixt :path-prefix)
        path (:uri request)]
    (when (match? path-prefix path)
      (tracker/trace
        #(format "Handling asset request `%s'." path)
        (let [[requested-checksum asset-path] (parse-path path-prefix path)
              twixt (:twixt request)

      ;; that might compile.
      development-mode (fs/wrap-with-filesystem-cache (:cache-folder twixt-options) resolver)
      production-mode mem/wrap-with-sticky-cache
      development-mode mem/wrap-with-invalidating-cache
      true wrap-with-tracing)))

(defn wrap-with-twixt-setup
  "Wraps a handler with another handler that provides the :twixt key in the request object.
