 
 (defn wrap-incise-parse
   "Call parse on each modified file in the given dir with each request."
-  [handler & {:keys [in out]}]
+  [handler]
   (let [orig-out *out*
         orig-err *err*]
-    (delete-recursively (file out))
+    (delete-recursively (file (conf/get :out-dir)))
     (fn [request]
       (binding [*out* orig-out
                 *err* orig-err]
-        (->> in
+        (->> (conf/get :in-dir)
              (file)
              (file-seq)
              (filter modified?)

      (handler request))))

(defn wrap-incise
  [handler & args]
  (-> (apply wrap-incise-parse handler args)
      (wrap-reset-modified-files-with-source-change)))

(ns ring.middleware.incise
  (:require [clojure.java.io :refer [file]]
            [ns-tracker.core :refer [ns-tracker]]
            (incise [utils :refer [delete-recursively]]
                    [config :as conf])
            [incise.parsers.core :refer [parse]])
  (:import [java.io File]))

