File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4646 props-registry
4747 (atom {})))
4848
49+ #?(:clj
50+ (defonce ^{:doc " Store of passed in custom options/tokens" }
51+ options
52+ (atom {:pretty-print? false })))
53+
4954(def ^:dynamic *strip-prefixes*
5055 " Prefixes to be stripped from class names in generated CSS"
5156 nil )
148153 :fonts (into (empty fonts)
149154 (map (juxt (comp name key) val))
150155 fonts)})]
156+ (swap! options merge configuration)
151157 (reset! girouette-api
152158 (girouette/make-api
153159 components
479485 (into [(str " ." (classname this))]
480486 (process-rules rules)))
481487 (css [this] (gc/compile-css
482- {:pretty-print? false }
488+ {:pretty-print? ( :pretty-print? @options) }
483489 (as-garden this)))
484490 (rules [_] rules)
485491 (tag [_] tag)
You can’t perform that action at this time.
0 commit comments