我學習的Clojure和我的項目在哪裏工作我使用的Compojure & 環 & clostache(鬍子的Clojure的)。如何將css文件包含到compojure項目中?
這是我的核心Clojure的文件:
(defroutes public-routes
(GET "/" [] (controller/index))
(route/resources "/")
(GET "/index" [] (controller/index))
(route/resources "/")
(GET "/customers" [] (controller/customers))
(route/resources "/")
(GET "/employees" [] (controller/employees))
(route/resources "/")
)
(defroutes app-routes public-routes
(route/not-found "404 Not Found")
)
我的問題是:我怎麼能包括CSS文件在我。 小鬍子文件?這個問題與此有關嗎? 小鬍子擴展或關於compojure的工作方式?
PS:沒有找到鏈接標籤css文件(404)。
你的css文件在哪裏?你可以拿他們嗎? (例如,通過在瀏覽器中轉到localhost:port/css/yourfile.css)。 –