Fork me on GitHub
#devcards
<
2015-10-15
>
frankhale01:10:58

I may be over thinking this, is there a way to conditionally show a defcard? Putting things in a function isn't enough because I want to retain the markdown information I can have in the defcard.

frankhale01:10:23

I'm going to be showing different cards when the user agent is different

frankhale01:10:56

this works: (defcard foo-bar (if condition "Hello" "World"))

frankhale02:10:44

is it possible to mount more than one reagent component in a card? I'd like to do (if condition (dc/reagent [foo]) (dc/reagent [bar]). It doesn't seem to work though.

frankhale02:10:20

I'm trying to use a defcard incorrectly apparently according to the docs

frankhale02:10:02

the defcard option :hidden came to the rescue 😃