diff --git a/project.clj b/project.clj index 18b64d1..799b3ad 100644 --- a/project.clj +++ b/project.clj @@ -13,7 +13,9 @@ [org.clojure/core.async "0.4.474"] [jarohen/chord "0.8.1"] [ring "1.7.0-RC1"] - [compojure "1.6.1"]] + [compojure "1.6.1"] + [reagent "0.8.1"] + [secretary "1.2.3"]] :plugins [[lein-figwheel "0.5.16"] [lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]] @@ -24,15 +26,7 @@ [{:id "dev" :source-paths ["src"] - ;; The presence of a :figwheel configuration here - ;; will cause figwheel to inject the figwheel client - ;; into your build - :figwheel {:on-jsload "sliva.core/on-js-reload" - ;; :open-urls will pop open your application - ;; in the default browser once Figwheel has - ;; started and compiled your application. - ;; Comment this out once it no longer serves you. - :open-urls ["http://localhost:3449/index.html"]} + :figwheel {:on-jsload "sliva.core/init-app"} :compiler {:main sliva.core :asset-path "js/compiled/out" @@ -67,7 +61,7 @@ ;; doesn't work for you just run your own server :) (see lein-ring) - :ring-handler sliva.server/routes + :ring-handler sliva.server/handler ;; To be able to open files in your editor from the heads up display ;; you will need to put a script on your path. diff --git a/resources/public/index.html b/resources/public/index.html index 03287b8..a62658c 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -10,7 +10,7 @@
- +