Extremely new to Clojure and even more so with Noir. Only snag I've hit is finding a clojure -> css plugin, and getting it to work. Currently trying with Gaka, but have no idea how I can force the creation of the css file other than having:
(save-css "public/css/style.css" rules)
at the bottom of the clj file. I have it in src/first/css/baseCss.clj ("first" being the project name)
Here's the whole file:
(ns first.css.baseCss
(require [gaka.core :as gaka]))
(def rules [:div#foo
:margin "0px"
[:span.bar
:color "black"
:font-weight "bold"
[:a:hover
:text-decoration "none"]]])
(save-css "public/css/style.css" rules)
And the dependencies block in the project file is:
:dependencies [
[org.clojure/clojure "1.4.0"]
[noir "1.3.0-beta3"]
[gaka "0.3.0"]]
Pretty much cut and paste from the github page. Not completely invested in Gaka if there is a better alternative. Just looks like it's had the most recent updates.