             [clojure.java.shell :as shell]
             [taoensso.timbre :as timbre
               :refer (log  trace  debug  info  warn  error  fatal get-env log-env)]
-            [taoensso.timbre.appenders.core :as appenders])
+            [taoensso.timbre.appenders.core :as appenders]
+            [org.httpkit.client :as http])
   (:use [selmer.parser]))
 
 (defn with-abs-path [filename]


(def index (render-file "index.html" {}))


(defn handle-errors [error]
  (timbre/error (str error))
  {:status 400,
   :headers {"Content-Type" "text/html"},
   :body (render-file "error.html" {})
  })


(defn handle-success [res]
  (info (str res))

  (catch java.io.IOException e
    (handle-errors e))))

(defn loginfo [text]
  (info text))
