Permalink
Browse files

get enfocus going

  • Loading branch information...
jflinchbaugh committed Mar 10, 2018
1 parent 8258fc4 commit 5388dac8e50813e94c3617db6386482c13f67231
Showing with 14 additions and 4 deletions.
  1. +1 −0 project.clj
  2. +13 −4 src-cljs/cheshire_cat/core.cljs
View
@@ -10,6 +10,7 @@
[org.clojure/clojurescript "1.9.946"]
[cljs-http "0.1.44"]
[org.clojure/core.async "0.4.474"]
[enfocus "2.1.1"]
]
:plugins [
[lein-ring "0.9.7"]
@@ -3,13 +3,22 @@
(:require
[clojure.browser.repl :as repl]
[cljs-http.client :as http]
[cljs.core.async :refer [<!]])
[cljs.core.async :refer [<!]]
[enfocus.core :as ef]
)
)
(defn ^:export init []
(repl/connect "http://localhost:9000/repl")
(go
(let [response (<! (http/get "/cheshire-cat"))]
(js/alert (:body response))
))
(let
[
response (<! (http/get "/cheshire-cat"))
body (:body response)
]
(ef/at
"#cat-name" (ef/content (:name body))
"#status" (ef/content (:status body)))
)
)
)

0 comments on commit 5388dac

Please sign in to comment.