Created
November 20, 2016 06:13
-
-
Save zehnpaard/56f35f697ccce79a87f08fbf34c9d764 to your computer and use it in GitHub Desktop.
Minimal setup for compiling CSS to file using Garden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns min-garden.core | |
(:require [garden.core :refer [css]])) | |
(def style | |
[:body {:font-size "16px"}]) | |
(defn -main [] | |
(css {:output-to "resources/public/css/main.css"} | |
style)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── project.clj | |
├── resources | |
│ └── public | |
│ └── css | |
└── src | |
└── min_garden | |
└── core.clj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject min-garden "0.0.1" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[garden "1.3.2"]] | |
:main min-garden.core) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment