Noir css can't load?

106 Views Asked by At

I figure out I can not load css in noir apps. Neither can not change the css soure file, is there anything wrong with the route?

(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]]))
1

There are 1 best solutions below

1
Matthew Boston On

Where are you keeping the css? This would assume that the css is located in /resources/public/css/reset.css.

If you're familiar with Rails and the asset pipeline, you should take a look at Dieter (https://github.com/edgecase/dieter).