hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
2018-02-15T17:20:12.000689Z

I know this has been covered somewhere, but what is the means to merge :class and :css declarations across component declarations (not override them). Thanks!

(defelem myelem [attr]
   (div attr
      :class [:class1]
      :css {:color "red"}))

(myelem
   :class [:class2]
   :css {:background-color "blue")

=>
<div class="class1 class2" style="color: red; background-color: blue"/></>

2018-02-15T17:22:06.000777Z

Any considerations when using using :class {:class1 true } instead of :class [:class1]

2018-02-15T23:34:55.000184Z

@chromalchemy newer versions of hoplon have :class/*

2018-02-15T23:59:07.000105Z

(def myelem (partial div :class/myelem [:class1] :css {:color "red"})) (myelem :class [:class2] :css {:background-color "blue"}))