       (if output-to
         (load-js-file engine output-to)
         (bootstrap-repl engine output-dir opts))
-      (repl/evaluate-form this env repl-filename  
-                          '(do                                  
-                             (.require js/goog "cljs.core")
-                             (set! cljs.core/*print-fn* js/print)))))
-
+      (repl/evaluate-form this env repl-filename
+        '(do
+           (.require js/goog "cljs.core")
+           (set! cljs.core/*print-fn* js/print)))))
   (-evaluate [{engine :engine :as this} filename line js]
     (when debug (println "Evaluating: " js))
-    (try {:status :success
-          :value (if-let [r (eval-str engine js)] (.toString r) "")}
-         (catch Throwable e
-           {:status :exception
-            :value (.toString e)
-            :stacktrace (stacktrace e)})))
+    (try
+      {:status :success
+       :value (if-let [r (eval-str engine js)] (.toString r) "")}
+      (catch Throwable e
+        {:status :exception
+         :value (.toString e)
+         :stacktrace (stacktrace e)})))
   (-load [{engine :engine :as this} ns url]
     (load-ns engine ns))
   (-tear-down [this]))

   :output-to   load this file initially into Nashorn, relative to output-dir.
                Use a minimal bootstrapped cljs.core environment if not specified."
  [& {debug :debug :as opts}]

  (let [engine (create-engine)
        compiler-env (env/default-compiler-env)
        env (merge (NashornEnv. engine debug)
                   {:cljs.env/compiler compiler-env}  ; required by cider middleware ?
                   opts)]
    env))

  

    (:require [cljs.repl.nashorn]
              [cemerick.piggieback]))

  (cemerick.piggieback/cljs-repl
    :repl-env (cljs.repl.nashorn/repl-env)
    :output-dir "resources/public/compiled"
    :cache-analysis true)
  )

;; Implementation

