This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-08
Channels
- # admin-announcements (19)
- # announcements (1)
- # beginners (70)
- # boot (192)
- # braid-chat (55)
- # cider (3)
- # cljs-dev (42)
- # cljsjs (2)
- # cljsrn (25)
- # clojars (23)
- # clojure (162)
- # clojure-brasil (3)
- # clojure-czech (18)
- # clojure-russia (10)
- # clojurecup (3)
- # clojurescript (63)
- # code-reviews (6)
- # community-development (340)
- # core-async (7)
- # cursive (4)
- # datomic (20)
- # events (2)
- # funcool (3)
- # hoplon (20)
- # jobs (33)
- # ldnclj (11)
- # lein-figwheel (9)
- # leiningen (6)
- # off-topic (1)
- # om (79)
- # proton (4)
- # re-frame (39)
- # ring-swagger (4)
- # slack-help (2)
- # yada (2)
Hello. I'm trying to use compojure and re-frame together. I've used the template. I can't seem to get compojure handlers to work with the figwheel configuration.
@mikethompson: I have a re-frame docs question. I noticed you often don't capitalize the start of bullet points. Are you opposed to following [this](http://english.stackexchange.com/a/55049) recommendation?
@virmundi: Are you trying to have multiple htmls pages instead of a single page application?
I got the feeling that I could update the project's handler ns. It seems that the static file is not servered by compojure, but rather the figwheel static file server.
@kamn no opinion (or knowledge) on/of style here. There's just whatever the fingers type.
None right now. I'm at the very start. I want to have localhost:3449/rest/api/is/here to get data. When I such a URL, I get a Page Not Found notice even though that URL points to a compojure handler returning static content.
It's really odd. if I reset the whole project back to basically the template, I can get the compojure features to work. If I try to add ring wrappings like json-response, nothing works. If I remove that change, nothing works even after a full shutdown of figwheel, cleaning and a restart
So I recommend trying localhost:3000/rest/api/is/here and if that fails then it is something with the server software, if it works then it is just figwheel having an issue
I didn't know that last bit. that does make developing a bit more complex with clojurescript/re-frame
So I have a handler that loads some stuff and then dispatches to success / error callbacks like in the readme
for parameters, should I 1. pass the server parameters to the handler? 2. Or should I make a separate dispatch that updates the search parameters inside the db, which then triggers handler which then reads that data out of the db and does it's ajax stuff
@dvcrn: either is good - if you need to show the params in a view then you will want them in the db, otherwise whatever is most convenient