devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
frankhale 2015-10-15T01:53:58.000323Z

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.

frankhale 2015-10-15T01:54:23.000324Z

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

frankhale 2015-10-15T01:58:34.000325Z

I'm silly

frankhale 2015-10-15T01:58:56.000326Z

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

frankhale 2015-10-15T02:14:44.000327Z

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.

frankhale 2015-10-15T02:21:20.000328Z

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

frankhale 2015-10-15T02:27:02.000329Z

the defcard option :hidden came to the rescue 😃