We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780628e commit 1d762aeCopy full SHA for 1d762ae
src/lambdaisland/ornament.cljc
@@ -33,6 +33,11 @@
33
registry
34
(atom {})))
35
36
+#?(:clj
37
+ (defonce ^{:doc "TODO"}
38
+ options
39
+ (atom {:pretty-print? false})))
40
+
41
(def ^:dynamic *strip-prefixes*
42
"Prefixes to be stripped from class names in generated CSS"
43
nil)
@@ -133,6 +138,7 @@
133
138
:fonts (into (empty fonts)
134
139
(map (juxt (comp name key) val))
135
140
fonts)})]
141
+ (swap! options merge configuration)
136
142
(reset! girouette-api
137
143
(girouette/make-api
144
components
@@ -451,7 +457,7 @@
451
457
(into [(str "." (classname this))]
452
458
(process-rules rules)))
453
459
(css [this] (gc/compile-css
454
- {:pretty-print? false}
460
+ {:pretty-print? (:pretty-print? @options)}
455
461
(as-garden this)))
456
462
(rules [_] rules)
463
(tag [_] tag)
0 commit comments