 (ns omnext-routing-one.core
+  (:require-macros
+    [cljs.core.async.macros :refer (go-loop)]
+    )
   (:require [goog.dom :as gdom]
             [om.next :as om :refer-macros [defui]]
             [om.dom :as dom]
             [clojure.string :as string]
+            [cljs.core.async :refer (<! put! chan)]
             ))
 
 (enable-console-print!)


;; Components

(defui RootView
  static om/IQueryParams
  (params [_]

    )

  Object
  (componentDidMount [this]
                     (go-loop [new-query (<! routes-chan)]
                                             (println "new query"
                                                      new-query)
                                (om/set-query!
                                  this
                                  new-query
                                  )

                              (recur (<! routes-chan))
                       )
                     )

  (render [this]
          (let [unbound-query (om/query this)
                unbound-params (om/params this)
