-
-
Save minikomi/12175f0a315b0edc50d52e2f23765f14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro build-class | |
([] "") | |
([[pred clsname] & remain] | |
`(str | |
(if ~pred | |
(str ~clsname " ") | |
"") | |
(build-class ~@remain)))) | |
(h/build-class | |
[@bg "bg-active"] | |
[@mobile "mobile"] | |
[@company "company-active"] | |
[(and @active-panel (not= :home @active-panel)) (str "panel-active " (name @active-panel))]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment