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 6222103 commit 793e4f0Copy full SHA for 793e4f0
src/sablono/cljss_compiler.clj
@@ -5,9 +5,10 @@
5
6
(defn- compile-class [class styles]
7
(let [cls (str "css-" (hash styles))
8
- gen-class `(apply cljss.core/css ~(builder/build-styles cls styles))]
+ gen-class `(cljss.core/css ~@(builder/build-styles cls styles))]
9
(if (seq class)
10
- `(apply str ~gen-class " " ~@(interpose " " class))
+ `(str ~gen-class " " ~@(->> (mapcat identity class)
11
+ (interpose " ")))
12
gen-class)))
13
14
(defn- normalize-attr [tag name type]
0 commit comments