             [cadence.model :as m]
             [noir.validation :as vali]
             [cadence.model.flash :as flash])
-  (:use noir.core
-        hiccup.core
-        hiccup.page-helpers))
+  (:use (hiccup core def page)))
 
 (def ^:dynamic *javascripts* ["/js/bootstrap.min.js"])
 

           [:ul.dropdown-menu
            [:li [:a {:href (str "/user/profile/" (m/identity))}
                  [:i.icon-th-list] " View Profile"]]
            [:li [:a {:href "/logout"} [:i.icon-off] " Log Out"]]]))])

(defn alert
  "Displays an alert box."

  `(binding [*javascripts* ~js-paths]
     ~@body))

(defn base-layout [& content]
  (html5
    [:head
     [:title "Cadence"]
