Skip to content

Commit a01b15f

Browse files
committed
.
1 parent f30b481 commit a01b15f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lambdaisland/ornament.cljc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
registry
3434
(atom {})))
3535

36+
#?(:clj
37+
(defonce ^{:doc "TODO"}
38+
options
39+
(atom {:pretty-print? false})))
40+
3641
(def ^:dynamic *strip-prefixes*
3742
"Prefixes to be stripped from class names in generated CSS"
3843
nil)
@@ -133,6 +138,7 @@
133138
:fonts (into (empty fonts)
134139
(map (juxt (comp name key) val))
135140
fonts)})]
141+
(swap! options merge configuration)
136142
(reset! girouette-api
137143
(girouette/make-api
138144
components
@@ -444,7 +450,7 @@
444450
(into [(str "." (classname this))]
445451
(process-rules rules)))
446452
(css [this] (gc/compile-css
447-
{:pretty-print? false}
453+
{:pretty-print? (:pretty-print? @options)}
448454
(as-garden this)))
449455
(rules [_] rules)
450456
(tag [_] tag)

0 commit comments

Comments
 (0)