我发现我无法在noir应用程序中加载css。 既不能改变css soure文件,路由有什么问题吗?
(ns my-web.views.common
(:use noir.core
hiccup.core
hiccup.page-helpers
))
(defpartial layout [& content]
(html5
[:head
[:title "website from noir"]
(include-css "/css/reset.css")]
[:body
[:div#idnumber content]]))
答案 0 :(得分:0)
你在哪里保持css?这将假设css位于/resources/public/css/reset.css
。
如果你熟悉Rails和资产管道,你应该看看Dieter(https://github.com/edgecase/dieter)。