-(ns d-cent.responses 
+(ns d-cent.responses
   (:require [net.cgrand.enlive-html :as html]
             [d-cent.translation :refer [translation-config]]))
 
 
 ;BASE TEMPLATE
-(html/deftemplate base "templates/base.html" 
+(html/deftemplate base "templates/base.html"
                   [{:keys [translation
-                           locale 
+                           locale
                            doc-title
                            doc-description
                            global-navigation
                            content]}]
                   [:html] (html/set-attr :lang locale)
                   ; TODO find a way to select description without an ID
-                  ; [:meta (html/attr= :name "description")] (html/set-attr :content "Some text")
+                  ; [:head (html/attr= :name "description")] (html/set-attr :content "some text")
                   [:title] (html/content doc-title)
                   [:#clj-description] (html/set-attr :content doc-description)
                   [:#clj-global-navigation] (html/content global-navigation)

(html/defsnippet users-email "templates/users-email.html" [[:#clj-users-email]]
                                                           [{:keys [translation]}]
                                                           [:h1] (html/content (translation :users-email/page-title))
                                                           [:.clj-users-email-label] (html/content (translation :users-email/email-label))
                                                           [:.clj-users-email-title] (html/set-attr :title (translation :users-email/email-title))
                                                           [:button] (html/content (translation :users-email/button)))

(defn render-template [template & args]

        (if-let [status-code (:status-code args)]
          (simple-response page status-code)
          (simple-response page))))
