load flf fonts at app startup

This commit is contained in:
Gered 2014-03-30 04:04:36 -04:00
parent 71751cbbd1
commit 7df24726e4

View file

@ -7,6 +7,7 @@
[clj-jtwig.core :as jtwig] [clj-jtwig.core :as jtwig]
[clj-jtwig.web.middleware :refer [wrap-servlet-context-path]] [clj-jtwig.web.middleware :refer [wrap-servlet-context-path]]
[toascii.route-utils :refer [find-routes]] [toascii.route-utils :refer [find-routes]]
[toascii.models.flf :as flf]
[toascii.util :refer [log-formatter]])) [toascii.util :refer [log-formatter]]))
(defroutes app-routes (defroutes app-routes
@ -30,7 +31,9 @@
(when (env :dev) (when (env :dev)
(log :info "Dev environment. Template caching disabled.") (log :info "Dev environment. Template caching disabled.")
(jtwig/toggle-compiled-template-caching! false))) (jtwig/toggle-compiled-template-caching! false))
(flf/load-all!))
(defn destroy (defn destroy
"destroy will be called when your application "destroy will be called when your application