This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-24
Channels
- # admin-announcements (16)
- # announcements (2)
- # beginners (12)
- # boot (92)
- # cider (1)
- # clojure (149)
- # clojure-argentina (1)
- # clojure-australia (3)
- # clojure-dev (2)
- # clojure-italy (2)
- # clojure-japan (1)
- # clojure-russia (9)
- # clojurescript (48)
- # clojutre (2)
- # core-logic (18)
- # datomic (48)
- # editors (43)
- # emacs (11)
- # funcool (12)
- # hoplon (11)
- # ldnclj (30)
- # ldnproclodo (1)
- # rdf (6)
- # re-frame (13)
- # reagent (10)
- # testing (1)
- # yada (1)
@mtraven: The behavior you are seeing is consistent with Planck 1.4 and earlier. Try Planck 1.5 or 1.6.
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.
@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
…but I’m not sure if it’s specific to JVM clojure since it relies on a leiningen feature
@bhauman: thanks, I changed the answer :https://github.com/vvvvalvalval/reagent-phonecat/wiki/Questions-about-ClojureScript#is-clojurescript-maturestable
I also added a Google Form for people to give feedback on the FAQ: http://goo.gl/forms/lf3ZK39dCl
@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..
@simax99: thanks, corrected it.
@val_waeselynck Cool, loving your work.
@val_waeselynck: The FAQ is great!
@val_waeselynck: Under “Does ClojureScript work in old browsers?” you could mention that the Google Closure library supports back to IE 6
(which I believe is true, although a crosscheck with e.g. dnolen would be a good idea)
@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?"
@cfleming: thanks, I'll take this into account
If you guys have JS friends vaguely interested in ClojureScript, don't hesitate to alpha-test this FAQ on them
WOT I did not know about the spy macro. Ermageerrrrd
@bhauman: I created a #C09GR9UJC channel for anyone that wants to learn more about devcards, or just discuss them in general.
@meow: great! I'm trying to be heads down today to get a bunch of the talk hammered out.
@petrus: we should make a newsletter for this sort of candy
where is spy defined?
@petrus: that's the kink of macro that everyone writes for themselves
although I do think I saw it in a library
@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#)))
Oh, that FAQ makes it seem like spy
is a built-in cljs macro.
You're right, I made a small modification.
@yogthos: looks like this one no? http://dev.clojure.org/jira/browse/CLJS-794
@tel Closure defines
Wrote about them here: http://www.martinklepsch.org/posts/parameterizing-clojurescript-builds.html
@tel you can define custom ones with goog-define
@tel: yes. The goog-define docstring should help
@martinklepsch: thanks for the article, after reading it I started using goog-define in my project: @tel: for inspiration, this is my env: https://github.com/darwin/plastic/blob/master/cljs/src/env/plastic/env.cljs https://github.com/darwin/plastic/blob/31e75bac5aaa5fe8dcd82d426f6fa8ef498dd428/cljs/project.clj#L51-L53
the second link is how I override config in cljs-build configs, caution with underscores ^
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
FYI, a big win today: https://github.com/Prismatic/schema/issues/256