Fork me on GitHub
#hoplon
<
2017-01-28
>
thedavidmeister00:01:00

@chromalchemy yes it's totally cell friendly, (div :garden (j/cell= {:background-color (if pred? :red :blue)})) is fine

thedavidmeister00:01:26

works for either individual hash maps or seqs, so (div :garden (j/cell= [(when pred? {:background-color :red}) (when foo? {:color :blue})])) is fine too

thedavidmeister00:01:53

what you can't do, is mix :garden and :css on the same element

thedavidmeister00:01:08

i haven't come across a use case for that yet, so i haven't bothered to make the implementation less naive

mynomoto12:01:51

@thedavidmeister do you think that is too small for a library? Should we have a place for this kind of snippet to live?

jussi12:01:47

Hello and thanks 🙂

mynomoto12:01:07

Are you starting with hoplon?

jussi15:01:57

Yup! Reading about Clojure and Hoplon. Seems great.

mynomoto16:01:48

Let us know if you need some help

jussi16:01:55

Thanks! Will do.

micha17:01:12

happy lunar new year everyone 🎊