Fork me on GitHub
#beginners
<
2016-08-29
>
krchia00:08:06

anyone knows what js/context refers to?

krchia00:08:23

looking at a code sample that uses "(GET (str js/context "/docs") {:handler #(session/put! :docs %)})"

krchia00:08:52

i can see that js/console comes from the Console API listed here https://developer.mozilla.org/en-US/docs/Web/API

krchia00:08:57

but there isn’t a Context API

krchia00:08:05

<- is not a javascript dev

krchia00:08:07

i also get an empty string if i try this out in the REPL

krchia00:08:25

for reference, the code comes from an autogenerated luminus template

krchia03:08:03

i made an unfortunate mistake in naming my project now that i’m halfway through it - can i rename it (and all the namespaces) without breaking it?

akiva12:08:17

Sure. I’ve done it before. Just make sure you make a ‘snapshot’ of your project folder before doing it just in case it gets completely hosed, you have the before still hanging about so you can try again.

alexmiller12:08:13

Or you know, version control :)

akiva12:08:39

Hah, that’s why I put ‘snapshot’ in quotes.

camille16:08:40

I’m doing the Udemy Clojure course and my output for lein uberjar is really different than what is shown in the course video. I ended up with an uberjar folder and then an uberjar+uberjar folder. can’t figure out what I did wrong 😞

shaun-mahood16:08:10

@camille: Which course are you doing on Udemy?

camille16:08:14

@shaun-mahood Clojure Fundamentals For Beginners

shaun-mahood16:08:09

@camille: If you can post your code someone might be able to help.

yonatanel18:08:18

@camille: especially the project.clj file

camille18:08:37

@yonatanel yeah i figure that is the only file that’d be helpful! 😄

richiardiandrea23:08:03

@camille: it looks like that behavior is given by :target-path (I have never needed it, especially at the beginning). Leiningen has a sample project, you can check there what the options are: https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L303