 (def state (atom {:saved? false}))
 
 ;; -------------------------
-;; SET / GET
-
-(defn set-value! [id value]
-  (swap! state assoc :saved? false)
-  (swap! state assoc-in [:doc id] value))
-
-(defn get-value [id]
-  (get-in @state [:doc id]))
-
-;; -------------------------
 ;; Declarations
 
 (def new-recipe (atom {:name "" :avatar_url "" :instructions ""}))

  (session/put! :current-page #'about-page)
  (swap! state assoc :page about-page))

(secretary/defroute "/new_recipe" []
  (session/put! :current-page #'new-recipe-page)
  (swap! state assoc :page new-recipe-page))

;; -------------------------
;; History

      [:td [:img {:src recipe-avatar-url :class "img-thumbnail" :style {:max-width "150px"}}]]
      [:td recipe-name]
      [:td
        [:button {:onClick #(secretary/dispatch! (str "#/recipes/" recipe-id))} "View"]
        [:button {:onClick #(destroy-recipe recipe-id)} "Destroy"]]]))

(defn home-page []
