Clojurians
#lein-figwheel
<
2016-02-29
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

pez07:02:11

@doddenino: Do you get this problem when trying to load some other resource than /? That’s where I am too. Was looking for a way to make figwheel always serve the same index.html regardless of path and let accountant handle the dispatch.

doddenino07:02:03

@pez yes, i solved the problem using a ring backend

pez07:02:11

I’ll do it that way too. Just need to read up on what a ring backend is. That’s the level of noob I am at. :smiley:

pez07:02:25

Yes, @venantius, I’m leaning towards going with accountant together with bidi now and worry about the html5 requirement later. I actually tried with pushy first and it worked as well, but then wanted to try accountant anyway. Switching from pushy to accountant was really easy and I think I’ll stick with it, since it glues into the rest of my setup very nicely. Am I correct in regarding pushy and accountant as two solutions for the same problem?

venantius07:02:57

that’s correct

venantius07:02:25

originally accountant was just written for secretary and I just wanted something that would magically configure itself

venantius07:02:43

then @arohner submitted a pretty excellent PR to open it up for general routing libraries

pez08:02:07

Thanks, it seems to work like a charm together with bidi. I have tried several approaches with secretary, including this one http://yogthos.net/posts/2014-08-14-Routing-With-Secretary.html which I had to adapt some on the browser history-hookin end. That was before going crazy over what the DSL approach forced me to do so then went with bidi. I’m still using the general reagent/atom approach that yogthos introduces in his blog post. That gave me some headache at first when trying to use accountant, before realizing I need to dispatch-current! first thing after configure-navigation!. I’ will probably blog something about it, even if I am a bit reluctant since I am such a clojure-world noob.

venantius08:02:05

blog posts are great! they help the people who follow after us figure out the right answers :simple_smile:

pez08:02:00

Word. I’m just worried that I might be misleading some other poor noob. :smiley: But I have actually tried out some four or five different approaches so seems I should share now that I feel some peace with the result.

shaun-mahood15:02:18

@pez: Blog post would be appreciated, even if you aren't 100% confident - I've spent a bit of time on it but am not totally satisfied with my solutions, your angle looks interesting and in line with what I want mine to be.

pez18:02:46

I'll whip something up. @venantius is right, we're in together on the search. :smile: