 (defn scriptsrc
   [src]
   [:script {:type "application/javascript" :charset "utf-8" :src (str src)}])
+
+
+(defn css
+  [css]
+  [:link {:charset "utf-8" :type "text/css" :rel "stylesheet" :href (str css)}])
+
+
+(defn repl-page []
+  (enlive/emit*
+    (enlive/html
+      [:html [:body
+              [:script {:src "js/d4/main.dev.js"
+                        :type "application/javascript"}]
+              [:script (browser-connected-repl-js)]]])))
 
 
 (deftemplate index-template "public/index.html" []

              :prod (enlive/html (scriptsrc "js/d4/main.js")))))


(defroutes d4-routes
  (GET "/" req (index-template))
  (resources "/"))



            [environ.core :refer [env]]
            [net.cgrand.enlive-html :as enlive :refer [deftemplate]]
            [compojure.core :refer [defroutes GET]]))


(defn script
