 
 (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)))
+    :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))))
+    :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))))

                   (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]

                   :footer          (get-in ctx [:config :extra/theme :footer] nil)
                   :factory-url     (get-in ctx [:config :factory :url])
                   :show-terms?     (get-in ctx [:config :core :show-terms?] false)
                   :filter-options  (first (mapcat #(get-in ctx [:config % :filter-options] []) (get-plugins ctx)))
                   }]
    (str "function salavaCoreCtx() { return " (json/write-str ctx-out) "; }")))


(defn include-meta-tags [ctx tags]
  (if tags
