Just like ordinary compojure app, I use router and I put the router in separate namespace, ex: my-app.routes. I use secretary router https://github.com/gf3/secretary.
In every pages's onload function I added function to dispatch the secretary (secretary/dispatch! (str (.-pathname (.-location js/window)) (.-search (.-location js/window)))) On Saturday, 17 January 2015 13:38:10 UTC+7, Ivan L wrote: > In a simple jsp app, you might place only scripts that you want loaded in > that page head. On ready, data is loaded and components rendered. In the > filesystem it hopefully well organized (/food is food.jsp). > > What is everyones strategy for multipage cljs apps? Are people ignoring url > when naming namespaces or do they map 1-1? > > Currently I've added a url check to various page load functions, but it seems > disorganized. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.