Fork me on GitHub
#clojurescript
<
2015-08-24
>
mfikes00:08:26

@mtraven: The behavior you are seeing is consistent with Planck 1.4 and earlier. Try Planck 1.5 or 1.6.

aengelberg00:08:29

Is there a way to functionally (within reagent) set the <head> <title> ... </title> </head> of an app? There might be a way within javascript but it would be nice to do it within the hiccup model.

timgilbert00:08:15

@olivergeorge: about your question about injecting stuff into your repl namespaces,the spyscope readme has an example about doing that kind of thing: https://github.com/dgrnbrg/spyscope

timgilbert00:08:13

…but I’m not sure if it’s specific to JVM clojure since it relies on a leiningen feature

mtraven02:08:48

That fixed me up, thanks!

val_waeselynck06:08:18

I also added a Google Form for people to give feedback on the FAQ: http://goo.gl/forms/lf3ZK39dCl

simax9907:08:34

@val_waeselynck In the "Platform" section, under the sub heading "Can I run ClojureScript on the server-side, and share logic between server and client?", the wording of the following paragraph is a bit mangled: First, ClojureScript targets all major JavaScript engines. Therefore, you can run need on NodeJS.. Which presumably should be... First, ClojureScript targets all major JavaScript engines. Therefore, you can run Clojurescript on NodeJS..

val_waeselynck07:08:33

@simax99: thanks, corrected it.

simax9907:08:28

@val_waeselynck Cool, loving your work.

cfleming08:08:05

@val_waeselynck: Under “Does ClojureScript work in old browsers?” you could mention that the Google Closure library supports back to IE 6

cfleming08:08:35

(which I believe is true, although a crosscheck with e.g. dnolen would be a good idea)

cfleming08:08:39

@val_waeselynck: Also a question about conversion of collections to/from JS might be a good idea, something like “Can I pass a ClojureScript collection to a JavaScript function expecting an object or array?"

dmich11:08:35

When is dnolen getting back from vacation. I'm starting to have withdrawal symptoms 😛

val_waeselynck11:08:35

@cfleming: thanks, I'll take this into account

val_waeselynck11:08:11

If you guys have JS friends vaguely interested in ClojureScript, don't hesitate to alpha-test this FAQ on them

Petrus Theron12:08:19

WOT I did not know about the spy macro. Ermageerrrrd

meow13:08:14

@bhauman: I created a #C09GR9UJC channel for anyone that wants to learn more about devcards, or just discuss them in general.

bhauman13:08:49

@meow: great! I'm trying to be heads down today to get a bunch of the talk hammered out.

meow13:08:00

@bhauman: Ping me if you need someone to bounce ideas off of.

bhauman13:08:56

@meow: thanks will do

val_waeselynck13:08:15

@petrus: we should make a newsletter for this sort of candy simple_smile

Petrus Theron14:08:43

where is spy defined?

val_waeselynck14:08:34

@petrus: that's the kink of macro that everyone writes for themselves

val_waeselynck14:08:45

although I do think I saw it in a library

val_waeselynck14:08:25

@petrus: in a simplistic form, could be something like

(defmacro spy [exp]
  (let [text (str exp " : ")]
    `(let [ret# ~exp] (.log js/console ~text (clj->js ret#)) ret#)))

Petrus Theron14:08:55

Oh, that FAQ makes it seem like spy is a built-in cljs macro.

val_waeselynck14:08:54

You're right, I made a small modification.

yogthos18:08:22

looks like it might be

tel20:08:07

is there a good partner to environ for cljs?

tel20:08:26

or maybe is it best to just use macros?

martinklepsch20:08:14

@tel Closure defines simple_smile

tel20:08:25

:closure-defines {“goog.ENV” lalala}?

martinklepsch20:08:58

@tel you can define custom ones with goog-define

tel20:08:00

you can define whatever symbol you like?

martinklepsch20:08:30

@tel: yes. The goog-define docstring should help

darwin20:08:18

the second link is how I override config in cljs-build configs, caution with underscores ^

darwin20:08:10

when testing for config value from macros, I use full js dot notation, that worked the best for me so far, because macro users don’t have to require plastic.env: https://github.com/darwin/plastic/blob/master/cljs/src/macros/plastic/logging.clj#L99