                    (cons (map (fn [f] (f ctx)) (plugin-fun (get-plugins ctx) "layout" "html-attributes"))))]
     (apply merge attrib)))
 
+
 (defn main-view
   ([ctx] (main-view ctx nil))
   ([ctx meta-tags]


(defn main [ctx path]
  (GET path []
       :no-doc true
       :summary "Main HTML layout"
       :current-user current-user
       :flash-message flash-message
       (main-response ctx current-user flash-message nil)))

(defn main-meta [ctx path plugin]
  (GET path []
       :no-doc true
       :path-params [id :- s/Any]
       :summary "Main with meta tags"
       :current-user current-user
       :flash-message flash-message
       (let [meta-tags (case plugin
                         :badge (b/meta-tags ctx id)
                         :page (p/meta-tags ctx id)
                         :user (u/meta-tags ctx id)
                         :gallery (g/meta-tags ctx id))]
         (main-response ctx current-user flash-message meta-tags))))

       [:link {:type "text/css" :href "/css/custom.css" :rel "stylesheet" :media "screen"}]
       [:link {:type "text/css" :href "/css/print.css" :rel "stylesheet" :media "print"}]
       [:link {:type "text/css", :href "https://fonts.googleapis.com/css?family=Halant:300,400,600,700|Dosis:300,400,600,700,800|Gochi+Hand|Coming+Soon|Oswald:400,300,700|Dancing+Script:400,700|Archivo+Black|Archivo+Narrow|Open+Sans:700,300,600,800,400|Open+Sans+Condensed:300,700|Cinzel:400,700&subset=latin,latin-ext", :rel "stylesheet"}]
       [:link {:rel "shortcut icon" :href (:icon favicons) }]
       [:link {:rel "icon" :type "image/png" :href  (:png favicons)}]

       [:script {:type "text/javascript"} (context-js ctx)]
       (include-js "/js/dataLayer.js"))]

      [:body {:class (if (nil? (get-in ctx [:user])) "anon")}
       [:div#app]
       "<!--[if lt IE 10]>"
