Fork me on GitHub
#beginners
<
2015-09-20
>
sanitar4eg09:09:17

hello, i will try to use clojurespirt for single page app, can you give me advice for choice, i found om and reagent, which is to try to start

timfield10:09:15

is "routes" a keyword in Clojure ? Just tracked down a weird bug that seems to be fixed by renaming a variable

dnolen11:09:26

@timfield: routes is not a keyword

timfield11:09:05

hmm so strange, if I rename build-routes to routes here I get "compojure.core$routes$fn__5152 cannot be cast to clojure.lang.Associative" https://github.com/weavejester/duct/blob/master/duct/src/duct/component/endpoint.clj

timfield11:09:43

@moocar: thanks - I went further down the rabbit hole simple_smile

dnolen11:09:47

@timfield that's not a Clojure thing, that’s a Compojure thing

dnolen11:09:19

the error gives a hint, routes it appears that resolves to something in Compojure core

timfield11:09:23

@dnolen: Hmm but if Compojure isn't being pulled into this namespace how could this happen? I get the feeling I'm overlooking something obvious.

dnolen11:09:22

@timfield that conclusion seem unlikely. If you are at a REPL perhaps you had some interactions that loaded something from Compojure at some point into your ns. Without seeing code hard to say.

timfield11:09:35

@dnolen: Yep ok must be something like that going on, I'll circle back to this once things have become less "magical". Thanks for clarifying.