       [:p [:a {:href (str "https://circleci.com" (:url endpoint)) :target "_blank"}
            "Try it in your browser"]])]))
 
-(defn api-endpoint-filter [endpoint]
-  (.renderComponentToString js/React (om/build api-endpoint-doc endpoint)))
-
 (defn code-list-filter [versions]
-  (let [component (fn [vs]
-                    (om/component
-                     (utils/html [:ul (for [v vs]
-                                        [:li [:code v]])])))]
-    (.renderComponentToString js/React (om/build component versions))))
+  (hiccup->str 
+   [:ul (for [version versions]
+          [:li [:code (if-let [name (:name version)] name version)]])]))
 
 (defn replace-variables [html]
   (let [re (js/RegExp. "{{\\s*([^\\s]*)\\s*(?:\\|\\s*([\\w-]*)\\s*)?}}" "g")]

            [goog.string :as gstring]
            goog.string.format
            [frontend.state :as state]
            [om.core :as om :include-macros true]))

(defn include-article [template-name]
  ((aget (aget js/window "HAML") template-name)))

    (gstring/format "curl %shttps://circle.com%s?circle-token=:token%s"
                    curl-args (:url endpoint) curl-params)))

(defn hiccup->str [hiccup]
  (.-innerHTML (node [:div hiccup])))

(defn api-endpoint-filter [endpoint]
  (hiccup->str 
   [:div
    [:p (:description endpoint)]
    [:h4 "Method"]
