 ;; ## Popovers
 
 (def popover-example
-  (d/div {:class "bs-example"}
-         (d/div {:style {:height 120}}
-                (r/popover {:placement "right"
-                            :position-left 200
-                            :position-top 50
-                            :title "Popover right"}
-                           "And here's some "
-                           (d/strong "amazing")
-                           " content. It's very engaging. Right?"))))
+  (example
+   (d/div {:style {:height 120}}
+          (r/popover {:placement "right"
+                      :position-left 200
+                      :position-top 50
+                      :title "Popover right"}
+                     "And here's some "
+                     (d/strong "amazing")
+                     " content. It's very engaging. Right?"))))
 
 ;; ## Navs
 
 (def nav-example
   (let [on-select (fn [k _] (js/alert (str "Selected " k)))
-        example (fn [style]
-                  (n/nav {:bs-style style}
-                         (n/nav-item {:key 1 :href "/home" :active? true
-                                      :on-select on-select}
-                                     "nav-item 1 content")
-                         (n/nav-item {:key 2 :href "/home"
-                                      :on-select on-select}
-                                     "nav-item 2 content")
-                         (n/nav-item {:key 3 :href "/home" :disabled? true
-                                      :on-select on-select}
-                                     "nav-item 3 content")))]
+        nav-example (fn [style]
+                      (example
+                       (n/nav {:bs-style style}
+                              (n/nav-item {:key 1 :href "/home" :active? true
+                                           :on-select on-select}
+                                          "nav-item 1 content")
+                              (n/nav-item {:key 2 :href "/home"
+                                           :on-select on-select}
+                                          "nav-item 2 content")
+                              (n/nav-item {:key 3 :href "/home" :disabled? true
+                                           :on-select on-select}
+                                          "nav-item 3 content"))))]
     (d/div
      (d/p "Navs come in two styles, pills:")
-     (example "pills")
+     (nav-example "pills")
      (d/p "And tabs:")
-     (example "tabs"))))
+     (nav-example "tabs"))))
 
 ;; ## Badges
 
 (def badge-example
   (d/div
    (d/p "Easily highlight new or unread items by adding a <Badge> to links, Bootstrap navs, and more.")
-   (d/div {:class "bs-example grids-examples"}
-          (d/p "Badges" (r/badge {} 42)))))
+   (example (d/p "Badges" (r/badge {} 42)))))
 
 ;; ## Final Page Loading
 


(def alert-example
  "Basic alert styles:"
  (r/alert {:bs-style "warning"}
           (d/strong "Holy guacamole!")
           "Best check yo self, you're not looking too good."))

(comment
  "TODO: Closeable alerts, just pass in a onDismiss function."

            [om-bootstrap.nav :as n]
            [om-bootstrap.panel :as p]
            [om-bootstrap.random :as r]
            [om-bootstrap.util :as u]
            [om-tools.core :refer-macros [defcomponent defcomponentk]]
            [om-tools.dom :as d :include-macros true]
            [schema.core :as s]
