2013-03-09 87 views
0

我想不出我无法在noir应用程序中加载css。 既不能改变css soure文件,路线有什么问题吗?Noir css无法加载?

(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

你在哪里保持css?这会假设css位于/resources/public/css/reset.css

如果您熟悉Rails和资产管道,那么您应该看看Dieter(https://github.com/edgecase/dieter)。

+0

对不起,我不熟悉这一点,我保持在该目录中的css。并且它无法正常工作。我无法更改该文件,或者我更改文件,它只是不起作用,在我的Chrome中没有任何反应,但字体和字体大小。 – 2013-03-12 00:42:07