[ClojureScript] question about om patterns

2015-01-19 Thread Ivan Willig
Hello, I am struggling with how to best represent the common UI pattern where there is a collection of objects and a single "active/current" object. Often there is a form where the user can edit the "active" object. I find myself saving a reference to the current id and then looking up that objec

[ClojureScript] Re: Strategy for organizing your functions and namespaces in a webapp.

2015-01-19 Thread Avi Avicenna
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