    :body (render-file "success.html" {:result (str res)})
   })
 
-
 (def script
   (let [r (with-abs-path script-file-name)]
     (info (str "Using script: " r))
     r))
-
 
 (defn call-script []
   (try

            [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])
  (: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))
