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 f30b481 commit a01b15fCopy full SHA for a01b15f
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
@@ -444,7 +450,7 @@
444
450
(into [(str "." (classname this))]
445
451
(process-rules rules)))
446
452
(css [this] (gc/compile-css
447
- {:pretty-print? false}
453
+ {:pretty-print? (:pretty-print? @options)}
448
454
(as-garden this)))
449
455
(rules [_] rules)
456
(tag [_] tag)
0 commit comments