   )
 )
 
-(defn error-handler [{:keys [status status-text]}]
-  (.log js/console (str "something bad happened: " status " " status-text)))
 
 (defn handler [response]
   (

          )
        )         
      )
      ;(apply dom/ul #js {:className "animals"} 
        ;(map story-view (:stories app) )
      ;)

    )
  )
)





(om/root
 stories-view
 app-state
 {:target (js/document.getElementById "app")})

)



(defn single-story-view [data]
  (dom/div #js  {:className "panel-primary"}
    (dom/div #js {:className "panel-heading"}
      (dom/h3 #js {:className "panel-title"}
        (dom/div #js {:dangerouslySetInnerHTML #js {:__html (get (first (:stories data))  :Title)  }} 
         nil)
       nil )
    )
    (dom/div #js {:className "panel-body"}
      (dom/div #js {:dangerouslySetInnerHTML #js {:__html  (get (first (:stories data))  :Body)}} nil)
    )
  )   
)

(defn item-view [data owner]
  (reify
    om/IRender
    (render [_]      
      (single-story-view data)
    )
  )
)

(defn list-view [app owner]
  (reify
    om/IRender
    (render [_]
