 
 (defmethod readf :default
   [{:keys [state] :as env} k params]
+  (if-let [v (get @state k)]
+    {:value k}
+    {:value nil}
+    )
   )
 
 (defmulti mutatef om/dispatch)

;; Processing the initial URL

(def initial-url
  js/window.location.hash)

(

;; Components

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

  static om/IQuery
  (query [_]
    )

  Object
  (render [this]
    (dom/div #js {:className "container"}
             "Hello, world!"
             )
          )
  )


(ns omnext-routing-one.core
  (:require [goog.dom :as gdom]
            [om.next :as om :refer-macros [defui]]
            [om.dom :as dom]
            [clojure.string :as string]
            ))

(enable-console-print!)

;; URL helper functions

(defn parse-url-hash [h]
  "#/foo/bar/?a=b&c=d -> {:path [\"foo\" \"bar\"], :params {:a \"b\", :c \"d\"}}"
  (let [
      h (subs h 2)
      [path params] (string/split h #"\u003f")
