               "Ошибка"
               (html (pict-source.error/page))))
 
-(defn public-assets []
-  (assets/load-bundle "assets/css"
-                      "style.css"
-                      ["/normalize.css" "/skeleton.css" "/main.css"]))
-
-(def public-pages (merge
-                    {"/" index "/error/" error}
-                    (lang-routes)))
-
 ;;; Site builder
 
 (defn lang-routes []

    (fn [acc param-lang] (into acc {(str "/" param-lang "/") (partial lang param-lang)}))
    {}
    (dictionary/langs-available)))

(defn build-assets [assets]
  (as-> assets a

          (update-in response [:headers "Content-Type"] #(str % "; charset=utf-8"))
          response)))))

(def server (-> (stasis/serve-pages site-pages)
                (optimus/wrap
                  public-assets assets-optimizations/all assets-strategies/serve-live-assets)
                ring.middleware.content-type/wrap-content-type
